PHP Echo If Examples

Glenn Glenn's Blog 0 Comments

There are a number of ways to echo PHP ‘If’ a statement is true. The most common syntax is:- So something like:- The example will output if the current time (HOUR) is less than 12. Echo HTML or PHP in PHP If Statement We also like to use an alternate echo that allows you to inject PHP or HTML within the …