equivalent C/C++'s atoi

From: Date: Thu, 12 Oct 2000 10:32:52 +0000
Subject: equivalent C/C++'s atoi
Groups: php.windows 
Request: Send a blank email to php-windows+get-3186@lists.php.net to get a copy of this message
I need to get the integer part of a variable: $val= "17.12"; I need that $val at a point to be "17" or 17 How can I do that in PHP?? Something like C/C++'s atoi or (int)(17.12) or floor(17.12) Rygars

« previous php.windows (#3186) next »