Answers for "how to make a if statement from the output of a function in php"

PHP
2

if condition inside echo in php

echo '<option value="'.$value.'" '.(($value=='United States')?'selected="selected"':"").'>'.$value.'</option>';
Posted by: Guest on February-11-2021

Code answers related to "how to make a if statement from the output of a function in php"

Browse Popular Code Answers by Language