All posts tagged:

php

Null Variables in PHP

A Null variable is a variable that doesn’t have a value. While writing code, there can be situations/scenarios where we have to deal with Null…

Let’s create a Countdown Timer in PHP

The following PHP snippet can be used to display a countdown timer on a web page. Start by creating a new PHP page in your…

Formatting Currency Values in PHP

You can format any numeric value to have decimal points by using PHP’s number_format() function. This is ideal when you want to deal with currency…