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

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

Reply via email to