php if loop change value of loop code example
Example: 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');
function checkVal($param) {
return ($param == 'Wildcats' || $param == 'Bulldogs') ? "Yes" : "No";
}
echo checkVal('Bears');