Basic PHP conditionals look a lot like C. PHP does add and elseif, but writing else if works just as well.

This page is all about you.

= 23) echo "Don't you ever sleep?"; else echo "Happy browsing!"; $ua = $_SERVER["HTTP_USER_AGENT"]; echo "

Your browser is "; if(preg_match("/MSIE/i", $ua)) echo "boringly conventional."; elseif(preg_match("/opera/i", $ua)) echo "something to sing about."; elseif(preg_match("/lynx|links/i", $ua)) echo "minimal."; elseif(preg_match("/netscape/i", $ua)) echo "getting kind of crusty."; elseif(preg_match("/firefox/i", $ua)) echo "progressive."; else echo "unusual."; ?>