i have tried this script and the result is true
$a = array('Allow','Block');
$b = array('yes','no');
$c=array_combine($a,$b);
while (list($key, $value) = each($c)) {
echo "$key: $value \n";
}
the true result :
Allow:yes Block:no
but when i use a varible into the array
$val1 = "'Allow','Block'";
$val2 = "'yes','no'";
$a = array($val1);
$b = array($val2);
the result is different :
'Allow','Block': 'yes','no'
the question is how i can make the first result because i got the text from dynamic varible