Tue Oct 28, 2008 3:26 pm
<html>
<head>
<title>Using the ? Operator</title>
</head>
<body>
<?php
$mood = "sad";
$text = ( $mood=="happy" ) ? "a good mood" : "Not happy but $mood";
print "$text";
?>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.