i m using array_combine() but it display error when in first array there is no value.
how to get rid of this
EDIT:
First array
Distance_Array
Array
(
[0] =>
)
School_ID_Array
Array
(
[0] =>
)
and i m using
$Coverage_ Array=array_combine($School_ID_Array,$Distance_Array);
which results
Coverage_ Array
Array
(
[] =>
)
i want that in first array, if any value is empty ,
then Coverage_ Array key accept any default key
Use conditions like this:
UDATED
Here the function ArrayCombine(), which get three parameters: two arrays and third – the default parameter. The default parameter value will be set to the empty or nulled first array values:
Here the example: