I have two arrays
$arrayOne = ( [0] => 4892 [1] => 98508 [2] => 7834 [3] => 47826 )
$arrayTwo = ( [1] => Car [2] => Computer )
Notice the elements of arrayTwo does not start at 0, but which is what i want because it will be used to pair with arrayOne, ie. Car matches with 98508.
I want to populate the second array where there are no entries with a string for example arrayTwo output:
$arrayTwo = ([0] => its empty [1] => Car [2] => Computer [3] => its empty
How can i achieve this desired output?
$arrayTwo = [null,'Car','Computer',null];doesn't work for you?