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] =>
There is even better/shorter/simpler solution. Compilation of already given answers. For initial data
[1, 4, "0", "V", null, false, true, 'true', "N"]
with
$result = array_map('strval', $arr);
$result will be
['1', '4', '0', 'V', '', '', '1', 'true', 'N']
This should work even in php4 :)