note 10136 added to intval

From: Date: Fri, 15 Dec 2000 02:22:09 +0000
Subject: note 10136 added to intval
Groups: php.notes 
Request: Send a blank email to php-notes+get-8748@lists.php.net to get a copy of this message
intval() is usefull to see if a var is a number or a letter. $test1 = "11"; $test2 = "RT"; intval($test1) returns 11 intval($test2) returns 0 So, except if your number is 0, a 0 will mean it's a letter... http://www.php.net/manual/function.intval.php

« previous php.notes (#8748) next »