Jason Barnett <mailto:[EMAIL PROTECTED]>
on Friday, February 25, 2005 2:10 PM said:
> $this = $something ? $that : null;
That won't work because I'm setting a default value for $this and want
it to change only if it has to. The long winded way to write this would
be:
<?php
$myVariable = "default";
if($somethingElse == "a value")
{
$myVariable = "new value";
}
else
{
// don't do anything
}
?>
Chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php