Blog

Archive for the PHP Category


PHP Classes and Objects Examples
Posted on March 22, 2018 in PHP by Matt Jennings

Constructor Example


Most Popular PHP String Functions
Posted on March 21, 2018 in PHP by Matt Jennings

substr()

strlen()

trim()

strpos()

strtoupper()

strtolower()

is_string()

strstr()

str_replace()

ucfirst()

ucwords()


WordPress PHP Code Cheat Sheet
Posted on November 17, 2017 in PHP, WordPress by Matt Jennings

The Loop

Custom Post Types using Advanced Custom Fields (ACF)

Functions for the Header, Footer, and Sidebar

Get the Current Year in PHP

Get
Read more…


PHP Regular Expression Examples using preg_match()
Posted on January 25, 2016 in PHP, Regular Expressions by Matt Jennings

Example PHP Function Using preg_match() to Regular Expressions Against Strings

Example PHP test() Function Call

Example HTML Output to Match awesome Anywhere
Read more…


Creating Custom Post Types, with Multiple Text Fields in a Single Meta Box and Template Info, in WordPress
Posted on October 31, 2015 in PHP, WordPress by Matt Jennings

Below are WordPress and PHP code samples on how to:

Create custom post types using a plugin.
Create multiple text fields (using
Read more…

To Top ↑