> -----Original Message-----
> From: Jason [mailto:networkad...@emarket2.com]
> Sent: 21 October 2010 11:45
> 
> What about something simple and readable like:
> 
> ($string=="true") ? true : false;

... and wasteful. The above gives exactly the same result as

  ($string=="true")


Cheers!

Mike

 -- 
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,  
Leeds Metropolitan University, C507 City Campus, 
Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom 
Email: m.f...@leedsmet.ac.uk 
Tel: +44 113 812 4730




To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to