Tag Archives: code

Count Versus Empty

This post is going to explore the reasoning behind using the empty() function over the count() function when doing tests on arrays. When working with any programming language, you are going to do a lot of work with iteration. Looping … Continue reading

Posted in Development, PHP | Tagged , , , , , , , , , , , , , | Leave a comment

My Favorite Variable Dumping Tool

Everyone has a few functions that are their favorite, or one that they keep handy in their toolbox for different situations; this is mine: see_var(). What does see_var() do? It takes any variable that you throw at it and it … Continue reading

Posted in Development, PHP | Tagged , , , , , , , | Leave a comment

Your phpinfo()

“Phpinfo” is a nice little script to have saved in your root directory. It’s one simple line, and will tell you lots of information about the system you are working with. It will tell you what configuration files you are … Continue reading

Posted in Development, PHP | Tagged , , , , , , , , | Leave a comment

Your First Script, Hello World!

The most notorious piece of code for any budding programmer to know is the script that produces “Hello World!” on your screen. What is a “Hello World!” program and why should you know how to write it? “Hello World” is … Continue reading

Posted in Development, PHP | Tagged , , , , , , , , , | Leave a comment