Very Basic PHP
Sunday, February 15th, 2004I always forget so here it is:
Very Simple PHP if statement that shows up when $var is 1:
//Setting $var
<?php
$var = “1“;
?>
// is $var 1?
My var <?php if ($var==”1″){ ?> is 1 <?php }else{ ?> ain’t 1 <?php } ?>
