You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ronan-Lenor
changed the title
Shorter way to write a Spread operator in a array for null value
Shorter way to write a Spread Operator in a array for null value
May 1, 2025
Ronan-Lenor
changed the title
Shorter way to write a Spread Operator in a array for null value
Shorter way to write a Spread Operator in an associative array for null value
May 1, 2025
Ronan-Lenor
changed the title
Shorter way to write a Spread Operator in an associative array for null value
Shorter way to write a Spread Operator in a array for null value
May 1, 2025
Description
add a new writing possibility, so that :
could be shortened to
So , if
$var = null;
then$array
would result to[]
and if
$var = false;
then$array
would result to['key' => false]
( same as using an array_merge() + array_filter() )
The text was updated successfully, but these errors were encountered: