Mert Oztekin wrote: > IMO, array_merge() is easy to use, however it suppose to use more cpu than other options. If you are a performance freak, i suggest you to not choose array_merge() solution. (also you execute date() and md5() functions even if you wont need to use them) > > In the other way, I think first option (with if() ones) seems more readable than other ones. > >From a performance view, check out these numbers http://www.cmsws.com/examples/php/functions/speedtests/array_merge.php To see the source: http://www.cmsws.com/examples/php/functions/speedtests/array_merge.phps What a surprising difference in numbers!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php