[Skip to the main content] Welcome to Daigo’s Daily Digital Diorama. I blog about Baseball, Judo, Jazz, Linux, Design and on being a dad.

  • Get Firefox!

Archive for February 15th, 2004

Very Basic PHP

Sunday, February 15th, 2004

I 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 } ?>