PHP String Compare: Equal – String Function

 
    <?php
  $hobby = "Music";
  if ($hobby = "Music"){
     echo "You have an interesting hobby";
  }
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.