if (isset($array['key'])) { /* there is a value for 'key' in $array */ }
You can check the definedness of an array element just as you'd for any other variable. See the Introduction to Chapter 5 for more information about the truth value of variables.
Documentation on isset( ) at http://www.php.net/isset.
Copyright © 2003 O'Reilly & Associates. All rights reserved.