note 119990 added to function.is-array
| From: | RobThomas | Date: | Wed, 05 Oct 2016 22:40:47 +0000 |
| Subject: | note 119990 added to function.is-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206779@lists.php.net to get a copy of this message | ||
Please note that the 'cast to array' check is horrendously out of date.
Running that code against PHP 5.6 results in this:
is_array : 0.93975400924683
cast, === : 1.2425191402435
So, please use 'is_array', not the horrible casting hack.
----
Server IP: 72.52.91.14
Probable Submitter: 2001:4830:121e:ffff:44ae:cf3e:1ea1:dfa0
----
Manual Page -- http://php.net/manual/en/function.is-array.php
Edit -- https://master.php.net/note/edit/119990
Del: integrated -- https://master.php.net/note/delete/119990/integrated
Del: useless -- https://master.php.net/note/delete/119990/useless
Del: bad code -- https://master.php.net/note/delete/119990/bad+code
Del: spam -- https://master.php.net/note/delete/119990/spam
Del: non-english -- https://master.php.net/note/delete/119990/non-english
Del: in docs -- https://master.php.net/note/delete/119990/in+docs
Del: other reasons-- https://master.php.net/note/delete/119990
Reject -- https://master.php.net/note/reject/119990
Search -- https://master.php.net/manage/user-notes.php