Sometimes I have to check an array for the existence of a value; for example, I may want to parse an array for a value and then include (or exclude) that value fro an SQL query. I quickly found out that using in_array() is slower than using isset(). For example:
(more…)
Monday, December 22nd, 2008 @ 6:56 pm | Comment (3) | Categories: PHP 5, General PHP
Newer Entries » |