PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
arborint wrote:I believe array_key_exists() will search an entire multi-dimensional array for a key.
I don't see that in the manual and I was not under that impression myself
The last comment in the manual reveals that this function is slower than using isset(). I seem to interchange between the two quite a lot which is bad I guess but array_key_exists() could be used in a more contextual sense when you want to make it clear you're looking for an ite in a container, not just the presence of a variable.
Logical when you think about it. Do the concatenation way and PHP needs to write new values to memory before adding it to the buffer and flushing. Use commas and PHP just uses the values already in memory.