note 74279 added to function.intval

From: Date: Tue, 03 Apr 2007 14:14:15 +0000
Subject: note 74279 added to function.intval
Groups: php.notes 
Request: Send a blank email to php-notes+get-125043@lists.php.net to get a copy of this message
I have to say it's so nice that this function returns an integer no matter what (like a zero on failure). Unlike the VBS function CInt() where you have to add a bunch of checks for empty or non-numeric values. It's nice to just be able to FORCE something to be an integer. Gotta love PHP. ---- Server IP: 216.235.15.211 Probable Submitter: 142.46.14.98 ---- Manual Page -- http://www.php.net/manual/en/function.intval.php Edit -- https://master.php.net/note/edit/74279 Del: integrated -- https://master.php.net/note/delete/74279/integrated Del: useless -- https://master.php.net/note/delete/74279/useless Del: bad code -- https://master.php.net/note/delete/74279/bad+code Del: spam -- https://master.php.net/note/delete/74279/spam Del: non-english -- https://master.php.net/note/delete/74279/non-english Del: in docs -- https://master.php.net/note/delete/74279/in+docs Del: other reasons-- https://master.php.net/note/delete/74279 Reject -- https://master.php.net/note/reject/74279 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125043) next »