You can do this with explode() - http://us4.php.net/manual/en/function.explode.php Here's an example: $number=34.4567; $parts=explode('.',$number); echo $parts[0]; //prints 34 echo $parts[1]; //prints 4567 Good luck! -Derek > -----Original Message----- > From: php-objects@xxxxxxxxxxxxxxx > [mailto:php-objects@xxxxxxxxxxxxxxx] On Behalf Of sunitsinha > Sent: Thursday, June 09, 2005 4:59 AM > To: php-objects@xxxxxxxxxxxxxxx > Subject: help needed > > > hi, > its a simple question but i am need the help. > > i have a value in the format xxx.yyyy (like 34.4567). now i want to > get integer part xxx (like 34) separately in a variable and yyyy (like > 4567) in another variable. how can i do it. please hepl me.. > > with thanks > Sunit > > > > > > > > PHP Data object relational mapping generator - > http://www.meta-language.net/ > Yahoo! Groups Links > > > > > PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/