PHP - if the element == 0 or null

0 votes
118 views
added Aug 14, 2019 in PHP by LC Marshal Captain (25,770 points)
<?php if ($searchList->response->total == 0):?>
  <h3>Sorry... no result found.</h3>
  <p>Suggestions:</P>
    <li>Please ensure all words are spelled correctly.</li>
    <li>Or, try different or more general keywords.</li>
<?php endif;?>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...