I'm sorry but i researched a lot about this issue. Is there a standard function to search and replace array elements?
str_replace doesn't work in this case, because what i wanna search for is an empty string '' and i wanna replace them with NULL values
this is my array:
$array = (
'first' => '',
'second' => '',
);
and i want it to become:
$array = (
'first' => NULL,
'second' => NULL,
);
Of course i can create a function to do that, I wanna know if there is one standard function to do that, or at least a "single-line solution".