Skip to content

if condtion in varibale value How to change in loop in PHP?

function checkVal($param) {
    return ($param == 'Wildcats' || $param == 'Bulldogs') ?  "Yes" : "No";

echo checkVal('Bears');
See also  PHP code snippet - How to use plugin shortin wordpress template?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.