<? $age = 12; if ( $age >= 18 && $age <= 35 ) { print "Youth message<br />\n"; } else if ( $age >= 1 && $age <= 17 ) { print "Child message<br />\n"; } else { print "Generic message<br />\n"; } ?>