
Hi,
Provide me the example of If function in PHP.
Thanks

Hi,
If function is PHP is used to check for some condition and the execute a block of code.
He is an example of if() function in PHP:
$book="PHP";
if($book=="PHP"){
echo "Book is PHP";
}
Thanks