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  CSS code snippet - How use befor after for image?

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.