<?php
$SchoolNames = Array(10003, "Southwestern College", "National University", "Western Governors University", "Southwestern College Admissions Center - Evaluations Dept");
$data = array(
0 => Array(
'STU_MANG_fname' => "Jennifer",
'STU_MANG_lname' => "patel",
'SchoolName' => "Southwestern College Admissions Center - Evaluations Dept",
'ShipAddress1' => "900 Otay Lakes Road",
'ShipState' => "CALIFORNIA"
)
);
foreach($data as $studen_info){
foreach($SchoolNames as $id=>$school_name){
if($studen_info['SchoolName'] == $school_name){
$student_names[$school_name] = $id;
}
}
}
print_r($student_names);
?>