Hi guys,
I have a good idea

, what do you think about opening a PHP optimization forum where people post their code and then we all together combine forces and our knowledge in order to optimize the code and make it simple, small and fast as possible?
You can sit, think and try your best, but noting will come into your mind if you yet to know something. What I mean is: let's say you have an array and you want to do something with each element of this array and you did it like this:
Code: Select all
foreach($arr as $val)
{
echo $val;
}
Now let's say you want to optimize this code, but you've never heard of array_walk() - no matter how much time you'll be spending trying to optimize it, if you don't know the array_walk() function noting will come to your mind, but on the contrary - if someone knows this function it would take him 1 second to notice that.
P.S It was just for the example and I'm not saying that using array_walk() is faster than using foreach() or vise versa - I really haven't got the chance to check it out
