Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

if condition in php


easy way to execute conditional html / javascript / css / other language code with php if else:

<?php if (condition): ?>

html code to run if condition is true

<?php else: ?>

html code to run if condition is false

<?php endif ?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #condition #php
ADD COMMENT
Topic
Name
3+4 =