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.
Get PHP Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.