note 100373 added to function.is-array
| From: | Seb at osu1 dot php dot net | Date: | Tue, 12 Oct 2010 08:34:58 +0000 |
| Subject: | note 100373 added to function.is-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173152@lists.php.net to get a copy of this message | ||
About the speed of hperrin at gmail dot com method of checking if a variable is an array, tested on
a (cat /proc/cpuinfo) AMD Phenom(tm) X4 Quad-Core Processor GS-4060, 8GB of DDR2 ram, PHP
5.2.14-pl0-gentoo, results are:
What's faster for determining arrays?
is_array : 0.841914892197
cast, === : 1.36104011536
Tested 1000000 iterations.
----
Server IP: 195.114.0.19
Probable Submitter: 89.76.203.40
----
Manual Page -- http://www.php.net/manual/en/function.is-array.php
Edit -- https://master.php.net/note/edit/100373
Del: integrated -- https://master.php.net/note/delete/100373/integrated
Del: useless -- https://master.php.net/note/delete/100373/useless
Del: bad code -- https://master.php.net/note/delete/100373/bad+code
Del: spam -- https://master.php.net/note/delete/100373/spam
Del: non-english -- https://master.php.net/note/delete/100373/non-english
Del: in docs -- https://master.php.net/note/delete/100373/in+docs
Del: other reasons-- https://master.php.net/note/delete/100373
Reject -- https://master.php.net/note/reject/100373
Search -- https://master.php.net/manage/user-notes.php