note 26954 added to function.intval

From: Date: Mon, 18 Nov 2002 23:30:04 +0000
Subject: note 26954 added to function.intval
Groups: php.notes 
Request: Send a blank email to php-notes+get-39663@lists.php.net to get a copy of this message
Translation of earlier French posting: I've tried all the previous examples to determine whether a string is a number, but nothing works, for example, if I try the month code "06". So, my solution is: if (($month != strtoupper($month."")) || ($month != strtolower($month.""))) { // not a number } -- http://www.php.net/manual/en/function.intval.php http://master.php.net/manage/user-notes.php?action=edit+26954 http://master.php.net/manage/user-notes.php?action=delete+26954 http://master.php.net/manage/user-notes.php?action=reject+26954

« previous php.notes (#39663) next »