Recently I’ve learned one nice trick with for loop. When you use it, you should know he number of itereations. Most people do it like this:
-
-
-
$s =
sizeof($a);
//you may use count(), but sizeof if 5% faster
-
for ($i = 0; $i < $s; $i++)
-
{
-
//do something clever here
-
-
‘;
-
}
-
But this requires counting number of elements before using a loop. Continue reading ‘Nice trick with FOR loop’ »
Posted by Konstantin Mirin on February 20, 2009 at 09:28 under JavaScript, PHP, Programming.
Tags: FOR loop, programming technique, tip, trick
7 Comments.
Yii is a great framework. It gives excellent built-in functionality, but, from my experience, is quite sensitive to the server configuration. Mostly because it relies on the newest technologies.
So here is a list of things to check when you experience strange things Continue reading ‘Yii framework – tips when going production’ »
Posted by Konstantin Mirin on February 20, 2009 at 09:17 under Frameworks, PHP, Yii.
Tags: framework, production, tip, Yii
4 Comments.