- array_map: documentation ( source)
- print_r: documentation ( source)
- preg_match_all: documentation ( source)
- explode: documentation ( source)
<?php
$array=array('A-C','A-E','Yes or No');
$result=array_map("showresult",$array);
function showresult($a){
$case=preg_match_all('/-|or/',$a,$matches);
echo $matches[0];die();
$a_explode=explode("$matches[0]",$a);
print_r($a_explode[0]);
// switch($matches[0]){
//case "-":for();
//}
}