1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php $arr = array( "name" => array( "0" => "Sorry the name is missing!", "1" => "Sorry the name is to short!" )); if(array_key_exists('name', $arr)) { print_r( $arr['name'] ); } else { echo "array key not found"; } ?>
1 2 3 4 5
Array ( [0] => Sorry the name is missing! [1] => Sorry the name is to short! )