I'd like to do this:
$var = ($var2 . $var3)
This means $var
is only true if $var1
and $var2
are truthy (anything that will cast to a boolean true
).
I'd like to do this:
$var = ($var2 . $var3)
This means $var
is only true if $var1
and $var2
are truthy (anything that will cast to a boolean true
).
.
is the string concatenation operator. Use &&
for a boolean AND operation:
$var = $var2 && $var3;