Given an array of arrays, how can I replace all empty values with 0?
- by stormist
Example array
$myArray[0] = array('23, null, 43, 12');
$myArray[1] = array('null, null, 53, 19');
$myArray[2] = array('12, 13, 14, null');
All nulls should be replaced with 0. I was hoping someone would have an efficient way of doing this, perhaps a built in PHP function that I am unaware of.