Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

if condition inside echo in php

echo '<option value="'.$value.'" '.(($value=='United States')?'selected="selected"':"").'>'.$value.'</option>';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #condition #echo #php
ADD COMMENT
Topic
Name
8+5 =