WebDev.am #SelectedArticles – #SelectedArticles

Eddie Dunckley: Understands. Willing to bet that calling array_keys twice and then just catching the first element is much slower and uses more memory on a large array than each(). Agrees foreach and then a break after first element will be faster (3 lines new method instead of 1 line old method).

from Tigo
via Did you enjoy this article? Then read the full version from the author’s website.

Leave a Reply

Back to Top