Category Archives: PHP

This is focused on the PHP language

PSR-1 Basic Coding Standard

With the explosion in PHP frameworks and PHP libraries that has occurred over the last couple of years, developers have started to be concerned about standards for coding that can be used across all frameworks.  To this end, at the … Continue reading

Posted in Naming Standards | Leave a comment

A PHP Singleton Flip-Flop, TRUE or FALSE

When I was learning computer internals, the hardware logic component that was the foundation of the computer was the flip-flop. The flip-flop was an electrical circuit that was either a one or zero. That usually translated to +9 volts or … Continue reading

Posted in Design Patterns | Leave a comment

Regular Expression Patterns

This is a quick, look-up of pre-constructed regular expression patterns you can use while validating forms and working with the Internet.  A cheat sheet to speed up your coding.  Each of these has been tested to work with PHP functions. … Continue reading

Posted in Regular Expressions | Leave a comment

Regular Expression Syntax

In our last post I went through a quick overview of the PHP functions that can be used with regular expression patterns.  Let’s take a closer look at these patterns. I always assign my reqular expression to a variable, to … Continue reading

Posted in Regular Expressions | Leave a comment

PHP Regular Expression Functions

When you use a regular expression, you create a special regular expression syntax pattern.  That pattern is then used to search the supplied text for that pattern, and then do something if it finds the pattern.  It can be used … Continue reading

Posted in Regular Expressions | Leave a comment