if condition inside echo in php

92

if condition inside echo in php -

echo '<option value="'.$value.'" '.(($value=='United States')?'selected="selected"':"").'>'.$value.'</option>';

Comments

Submit
0 Comments