You are here: RE: [PHP] Like ternary but without the else. « PHP « IT news, forums, messages
RE: [PHP] Like ternary but without the else.

Posted by Rich on 10/04/96 11:09

I couldn't find this anywhere on google or PHP's site but I'm pretty sure
there's an answer to it.

How can I turn the following into something that resembles the ternary
operator?

<?php

if($something)
{
$this = $that;
}

?>


is this what you're after?

$this = ($something ? $that : $this)

rich

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация