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!
I read it and now I've got a question regarding the inefficiency it describes. Here are the two code snippets. The first is inefficient and slow (according to the article), and the second one is the correct one.
there's no major difference really. The first front-loads the time, while the second back-loads it. But both must do the same work, apparently. Now, in a larger application, it could be more efficient to do the second one, but it the first can be more efficient, depending very heavily on how the code was written.