note 118587 added to function.ctype-alnum

From: Date: Mon, 04 Jan 2016 16:42:50 +0000
Subject: note 118587 added to function.ctype-alnum
Groups: php.notes 
Request: Send a blank email to php-notes+get-204590@lists.php.net to get a copy of this message
It is also important to note that the behavior of ctype_alnum differs according to the operating system. For UNIX-based operating system, if you pass a value that is not a string (or an overloaded object), independently of the value, it will always result in false. However, if we do the same on Windows, using, for example, -1 as literal (a minus and a number greater than 0), we'll have true as result. <?php var_dump(ctype_alnum(-1)); // UNIX: bool(false) // Windows: bool(true) ---- Server IP: 72.52.91.14 Probable Submitter: 177.67.90.130 ---- Manual Page -- http://php.net/manual/en/function.ctype-alnum.php Edit -- https://master.php.net/note/edit/118587 Del: integrated -- https://master.php.net/note/delete/118587/integrated Del: useless -- https://master.php.net/note/delete/118587/useless Del: bad code -- https://master.php.net/note/delete/118587/bad+code Del: spam -- https://master.php.net/note/delete/118587/spam Del: non-english -- https://master.php.net/note/delete/118587/non-english Del: in docs -- https://master.php.net/note/delete/118587/in+docs Del: other reasons-- https://master.php.net/note/delete/118587 Reject -- https://master.php.net/note/reject/118587 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204590) next »