Re: Array Help

From: Date: Wed, 28 Nov 2001 09:09:11 +0000
Subject: Re: Array Help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75865@lists.php.net to get a copy of this message
or in general the following simple PHP function may suffice for you: function array_innermost($array) { if (is_array($array)) { return array_innermost(array_unshift($array)); } else { return $array; // exactly not an array now but its 1st element } } ----- Original Message ----- From: "Jack Dempsey" <dempsejn@georgetown.edu> To: "PHP Lists" <php-general@lists.php.net>; <b-bonini@home.com> Sent: Tuesday, November 27, 2001 10:59 PM Subject: RE: [PHP] Array Help | you can just kept adding []'s | | $var["category"]["subcategory"]["Item"] = "url"; | | -----Original Message----- | From: Brian V Bonini [mailto:b-bonini@home.com] | Sent: Tuesday, November 27, 2001 4:56 PM | To: PHP Lists | Subject: [PHP] Array Help | | | How can I access the inner most info in this array? | Ie, Item and url | | $var = array( | "category" => array( | "subcategory" => array( | "Item" => "url" | ), | ) | ); | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net | For additional commands, e-mail: php-general-help@lists.php.net | To contact the list administrators, e-mail: php-list-admin@lists.php.net | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net | For additional commands, e-mail: php-general-help@lists.php.net | To contact the list administrators, e-mail: php-list-admin@lists.php.net |

« previous php.general (#75865) next »