geeky · non php code

the good way to fix float issue in container

MUST LEARN CSS TRICK!! this issue has been bugging me for too long. i finally got off my lazy butt and researched for a solution. if you do a lot of css layouting, sooner or later you will run into this issue. How To Clear Floats Without Structural Markup tutorial gives the best solution i… Continue reading the good way to fix float issue in container

funny · geeky · php code

A new way of array checking in PHP

i just saw the funniest thing in PHP yet! below is taken from here. This code is lifted from a socket handling class that I’ve been asked to work on today. Prepare to cringe: It’s worth noting that the foreach() statement will move from line 392 with so much as a return key (as it… Continue reading A new way of array checking in PHP