Hi,
I have two arrays
$one = array ( "1" => 0, "2" => 0, "3" => 0, "4" => 0, "5" => 0 );
$two = array ( "1" => 2, "2" => 5 );
as you can see the first has all zeros for values.
The values in the second array represent the keys in the first. I know this is not very clear so :
I need to read the values from the second array and then replace the values of the first with the integer 1 if they are in the second array.
So the resulting array would look like this
$three = array ( "1" => 0, "2" => 1, "3" => 0, "4" => 0, "5" => 1 );
Can anyone please help me with this?
Many Thanks in advance
jn