Hope

Friday, October 5, 2007

Small if/else statements - ternary operator

echo "You have $i ". ($i==1 ? "message" : "messages"). " in your mailbox.\n";
Posted by Counting Blessings at 6:15 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2008 (1)
    • ►  January (1)
  • ▼  2007 (8)
    • ▼  October (6)
      • Styles you can use with JavaScript
      • Back link using JavaScript
      • Regular Expression Online Tester
      • To prevent yourself with sql injection, use mysql_...
      • Small if/else statements - ternary operator
      • How to use references in foreach safely and sanely...
    • ►  September (2)

About Me

Counting Blessings
View my complete profile
Ethereal theme. Powered by Blogger.