Re: Your Opinion
| From: | Gerard Samuel | Date: | Tue, 16 Dec 2003 16:10:20 +0000 |
| Subject: | Re: Your Opinion | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172814@lists.php.net to get a copy of this message | ||
On Tuesday 16 December 2003 09:33 am, Marek Kilimajer wrote:
> For correct benchmarking you should run the test also when $foo == 'string'
>
Actually, I did, showing similar results to my first example.
<?php
$foo = 'string';
for($x=0; $x < 100; $x++)
{
if ($foo === @(array)$foo)
// if (is_array( $foo ))
{
echo 'true<br />';
}
else
{
echo 'false<br />';
}
}
?>