In Perl, if I want to default a value that might exist, for example as a passed in parameter, I can do this:
$var = parm->('variable') || 'default';
Is there something analogous in PHP or do I have to check the value after assigning, and if it is still null assign it the default value?