I have two arrays.
$longArray = array("AL","AR","AZ","CA","CO","CT","DC","DE","FL","GA","HI","IA","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","RI","SC","TN","TX","UT","VA","VT","WI","WV");
$topStates = array("CA"=>"1495","TX"=>"1088","NY"=>"582","IL"=>"337","AZ"=>"130");
I need to build a list via loop from array $serStateAct minus 3 key values from $topMemStates with the highest values.
I was thinking I could use array_diff but I'm not sure how to use only the first 3 values from $topStates...
$newArray = array_diff($longArray, $topStates);
kinda stuck.