RE: [PHP-DB] number format
explode() RTFm bastien From: balwantsingh [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP-DB] number format Date: Sat, 27 Nov 2004 18:07:27 +0530 hello, may pls. suggest me how i can retreive number before decimal and after decimal. for example 123456.7. I want to store 123456 in a variable and 7 in another. also how can i force the user by validations so that he can only enter data in this format only i.e. 123456.7. thanks with best wishes balwant -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] number format
hello, may pls. suggest me how i can retreive number before decimal and after decimal. for example 123456.7. I want to store 123456 in a variable and 7 in another. also how can i force the user by validations so that he can only enter data in this format only i.e. 123456.7. thanks with best wishes balwant -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] number format
Balwantsingh wrote: hello, may pls. suggest me how i can retreive number before decimal and after decimal. for example 123456.7. I want to store 123456 in a variable and 7 in another. also how can i force the user by validations so that he can only enter data in this format only i.e. 123456.7. thanks with best wishes balwant Use explode() $num = 123456.7; $parts = explode(., $num); echo $part[0]\n; echo $part[1]; -- -- ShenKong ([EMAIL PROTECTED]) -- http://www.openphp.cn -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] number format
hello, may pls. suggest me how i can retreive number before decimal and after decimal. for example 123456.7. I want to store 123456 in a variable and 7 in another. also how can i force the user by validations so that he can only enter data in this format only i.e. 123456.7. thanks with best wishes balwant -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php