Funny array function

From: Date: Sun, 30 Sep 2012 11:50:13 +0000
Subject: Funny array function
Groups: php.internals php.qa 
Request: Send a blank email to php-qa+get-66724@lists.php.net to get a copy of this message
hello guys, this is my first time, if thing mail is at wrong place please forward it the right place. while coding , i just found a requirement, its little bit funny. if it already exists, please be calm and mail me the function name and its usage. for accessing arrays we use <?php echo $array["school"]["class"]["roll_number"]["name"]; // this will print the name of the student /* i was thinking if is their any function that can do the above work like */ echo array_drill($array, array("school","class","roll_number","name")); // like wise while assigning values array_drill(<array to perform on>, <keys>, <new value>); ?> i hope you guys would have understood what i mean. kuldeep singh dhaka kuldeepdhaka9@gmail.com

« previous php.qa (#66724) next »