Blog

Learning PHP 101 – Custom Functions

Although PHP has a lot of built in functions. Developers often need to write their own functions in order to achieve their objectives. Functions are useful for eliminating repetition, but they can also be used to perform complex tasks and can even be used to group together a series of functions to output a particular […] Read More

Learning PHP 101 – Built In Functions

Functions are reusable bits of code that you use throughout a project. They help to better organize your application as well as eliminate the need to copy/paste repetitive pieces of code. In an ideal world an application should not have multiple functions doing the same thing. PHP has a lot! of built in functions and […] Read More

Learning PHP 101 – While & Do-While Loops

Loops are structures that can execute a set of statements multiple times. They save us time and make code management simpler. Each type of loop serves to fit different scenarios. It is important that you chose the right loop for the job. Remember: The for loop is used to loop through a block of code […] Read More

Learning PHP 101 – For & Foreach Loops

Programmers often have to repeat blocks of code a given number of times or until a certain condition is met and we can achieve this by either typing out each iteration like so: <?php echo "1"; echo "2"; echo "3"; echo "4"; // and so on ?> or we can use a for loop. <?php […] Read More

Learning PHP 101 – Arrays

An array is a list of items that can be stored in a single variable. Imagine making a list of things to do and each item is listed on its own sticky note. Before you know it your entire desk would be covered in sticky notes. The alternative is to group these items together in […] Read More

Learning PHP 101 – Conditionals and Control Flows

Conditionals and control flows are one of the most useful and common functions in PHP. If statements If statements allow you to make decisions within your code. Together with comparisons you can ask simple yes/no questions and provide different outcomes for each. Lets say you need people to declare their age before you can display […] Read More

Learning PHP 101 – Introduction

PHP is one of the most powerful server side programing languages in use to date. It powers most of the sites you see on the web and is a great way to kick start your developer career off. We all learn to code in our own way and writing it down is the best way […] Read More

Flex Grid without Extra HTML markup

Flex is a CSS property that allows developers to more easily layout and align content. Flex has been a long time coming and something that has been sorely missing from the developers arsenal for a long time. But finally it is supported widely enough to be deployed and utilized as an essential part of development […] Read More

Remove Extra 10px from Captions

WordPress by default adds an extra 10px to the width of the container that wraps images with captions. This is because the default styling for captions has a thin border that surrounds the entire image. In a recent design I decided I wanted to caption images in a slightly different way and just have the […] Read More

Make Embedded YouTube & Vimeo Videos Responsive

Embedding videos in WordPress is really very simple. Just paste the Video URL into the visual editor and boom! Magic happens! But there is one minor issue. These videos are not responsive by default and will scale incorrectly like this. There are  a number of ways you could fix this, you could go into text […] Read More

123