I have a string with an operator in:
echo 'abc.' . $type ?? 'no type' . 'xyz';
If $type exists I want that to be the value, if it does not, I want 'no type' to be the value.
But with the above I just get a $type undefined error. It's not defined in my example as I want 'no type' to be outputted.
Where am I going wrong?