String compare: equal : String Compare « String « PHP






String compare: equal


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








Related examples in the same category

1.String compare demo: =
2.strcasecmp: Binary safe case-insensitive string comparison
3.String compare with if statement
4.Compare string