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 />';
    }
}

?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to