note 22092 added to function.intval

From: Date: Thu, 06 Jun 2002 10:01:49 +0000
Subject: note 22092 added to function.intval
Groups: php.notes 
Request: Send a blank email to php-notes+get-31526@lists.php.net to get a copy of this message
J'ai essayé tous les exemples precedants pour determiner si la chaine est un entier, mais aucun ne marche si il s'agit d'un mois "06" par exemple. donc ma solution est: if (($_mois != strtoupper($_mois."")) || ($_mois != strtolower($_mois.""))) { //pas un chiffre } -- http://www.php.net/manual/en/function.intval.php http://master.php.net/manage/user-notes.php?action=edit+22092 http://master.php.net/manage/user-notes.php?action=delete+22092 http://master.php.net/manage/user-notes.php?action=reject+22092

« previous php.notes (#31526) next »