PHP If Statement

by Hiroshi on June 20, 2008

in if, PHP Basics

To understand if statement consider the following script.

<?php
$apples="3";
if($apples=='3')
{
echo "Correct";
}
?>

The output will be correct because apples are 3. It is about that if apples are 3 then print correct.

Related Posts

Previous post:

Next post: