note 100373 deleted from function.is-array by danbrown
| From: | danbrown@php.net | Date: | Tue, 12 Oct 2010 16:11:31 +0000 |
| Subject: | note 100373 deleted from function.is-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173166@lists.php.net to get a copy of this message | ||
Note Submitter: Seb
----
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.