Bryan Harris wrote:
> I'd like to concatenate two variables--
>
> $newVar = $old1 . $old2;
>
> -- where $old1 might be undefined.  Is there any way to set a flag so
> that this just results in $old2 instead of the compiler throwing an
> error?

The concatenation operator will work fine with an undefined value. It's
one of the cases where the interpreter will substitute an empty string
instead of throwing an error.

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to