¡@

Home 

php Programming Glossary: isset_

Why is array_key_exists 1000x slower than isset on referenced arrays?

http://stackoverflow.com/questions/6337893/why-is-array-key-exists-1000x-slower-than-isset-on-referenced-arrays

functions with a reference. Benchmark Example function isset_ key array array return isset array key my_array array start.. i my_array array start microtime TRUE for i 1 i 10000 i isset_ i my_array my_array i 0 stop microtime TRUE print isset_ my_array.. i isset_ i my_array my_array i 0 stop microtime TRUE print isset_ my_array . stop start .PHP_EOL unset my_array my_array_ref start..