Answers for "php if statement in echo statement"

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