PHP TUTORIAL

PHP if statement


<?php
$s1 = "learning PHP is easy with referencedesigner.com";
if (strlen($s1) >= 10) echo "The string has a length greater than 10";
?>


If you run this code you will get the following output.

The string has a length greater than 10