Answers for "php echo with if statement inside"

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

Browse Popular Code Answers by Language