Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php if else

echo 'Your score is:  '.($score > 10 ? ($age > 10 ? 'Average' : 'Exceptional') : ($age > 10 ? 'Horrible' : 'Average') );
Source by davidwalsh.name #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
4+5 =