> How about using array_keys($array, $value) to find the key?

obviously it is cheaper to let in_array return it and it is more php 4 
stylish, we have booleans, why not use them?

if ($key=in_array()) do_someting_with_key($key);

is less expensive than

if (in_array()) {
    $key=array_keys($array,$value);
    do_something_with_key($key); }

-- 
· André Langhorst        t: +49 331 5811560 ·
· [EMAIL PROTECTED]          m: +49 173 9558736 ·
* PHP Quality Assurance  http://qa.php.net  *


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to