Re: Funny array function
| From: | Chris van Dam | Date: | Mon, 01 Oct 2012 07:32:11 +0000 |
| Subject: | Re: Funny array function | ||
| References: | 1 | Groups: | php.internals php.qa |
| Request: | Send a blank email to internals+get-63255@lists.php.net to get a copy of this message | ||
Hi Kuldeep,
Why would you want to do this, it seems to me there is more code than the
regular array access method.
Kind regards,
Chris van Dam
Op 30-09-12 13:50 schreef kuldeep dhaka <kuldeepdhaka9@gmail.com>:
>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
E-mail disclaimer Nederlands
De informatie verzonden met dit e-mailbericht is vertrouwelijk en kan wettelijk voorbehouden zijn.
Het is uitsluitend bestemd voor de geadresseerde. Gebruik van deze informatie door anderen dan de
geadresseerde en zij die gerechtigd zijn daarvan kennis te nemen is verboden. Trace staat niet in
voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige
ontvangst daarvan.
E-mail disclaimer English
The information contained in this communication is confidential and may be legally privileged. It is
intended solely for the use of the individual or entity to whom it is addressed and others
authorized to receive it. The use of it by others is prohibited. Trace is neither liable for the
proper and complete transmission of the information contained in this communication nor for any
delay in its receipt.