In a shortcode context, is there any difference here?
array(
'slideshow' => '',
),
and
array(
'slideshow' => NULL,
),
Is there a best practice for that?
In a shortcode context, is there any difference here?
array(
'slideshow' => '',
),
and
array(
'slideshow' => NULL,
),
Is there a best practice for that?
If the 'slideshow' key is normally supposed to contain a string value, but you want to give it an empty value, then give it the empty string. The empty string is still a string data type, so it is more likely to react the way you expect in a string function. The null value is not a string, and if you don't have more information on how it is used, may or may not behave the way you want it to.