Tag Archives: variable

Using the Directory Iterator Class for Log Files

My favorite use of the Directory Iterator class is cycling through a logs directory. Sometimes I use it when I have a huge directory full of things I need to get a quick look at. Setting up the class to … Continue reading

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

Good Naming Conventions

Maintaining good naming conventions aren’t just good programming practice, it also shows common courtesy for fellow programmers and yourself. You may be asking yourself “Why is this so important?” Well one day, hopefully, you will be working with other programmers … Continue reading

Posted in Inspiration | Tagged , , , , , , , , , , , | Leave a comment

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