PHP String Compare Demo: = – String Function

<?php
  $ilike = "Dance";
  if ($ilike = "Music"){
     echo "Do you like singing?";
  }elseif ($ilike = "Dance") {
     echo "Do you like dancing?";
  }else{
     echo "You like neither music nor dance";
  }
  ?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.