OK, I have one array called headers, and one called data...
$headers = array("City", "State", "Zip");
$data = array("St. Petersburg", "FL", "33703");
// What I want is this:
$combined = array("City" => "St. Petersburg", "State" => "FL", "Zip" => "33703");
I am trying to find a function that will combine the arrays using the $headers array as the keys and the $data array as the values.
I found array_combine() in the php manual, but it is for PHP5 CVS only. Is there an existing function in PHP4, or has anyone written a function to do this in PHP4?
I would think someone has, but I can't wrap my brain around it.
Thanks for your help in advance.