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  Python code snippet - How to access dictionary inside an array ?

Leave a Reply

Your email address will not be published.

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