Using variables in CSS

I’m working on a little PHP script to allow for variables and inheritance in CSS. I know there’s a ruby script that does this somewhere, but I fancy seeing if we can’t get a pure PHP version up & running between us. If you’re somebody that writes their own CSS and are willing to have… Continue reading Using variables in CSS

Limiting the number of times a PHP loop will run using the break command

If you’re reading this page then you’re already likely familiar with the standard PHP for, while and foreach loops. If not, then may I suggest some background reading first – http://www.php.net/manual/en/language.control-structures.php. That said, I added a new weapon to my PHP arsenal today in the form of a better understanding of the break command. I’ve… Continue reading Limiting the number of times a PHP loop will run using the break command

Published
Categorised as PHP, Web Dev