Short if-Statement


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $x = ($myvalue == 10) ? "the value is 10": "the value is not 10";

URL: http://www.lizjamieson.co.uk/2007/08/20/short-if-statement-in-php/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.