I want to convert this array that Array[4] should not give null it can give blank space (empty string).
Array ( [0] => 1 [1] => 4 [2] =>
PHP 5.3+
$array = array_map(function($v){ return (is_null($v)) ? "" : $v; },$array);