Re: For my understanding
| From: | Aziz Saleh | Date: | Sun, 26 Jul 2015 01:47:23 +0000 |
| Subject: | Re: For my understanding | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-49060@lists.php.net to get a copy of this message | ||
On Sat, Jul 25, 2015 at 9:33 PM, Karl DeSaulniers <karl@designdrumm.com>
wrote:
> Hello,
> This might be a question better suited for the general php list.
> If it is, please let me know.
>
> I have inherited some pages that have a code on it I don't recognize.
> Can anyone enlighten me as to what this code is doing?
>
> [code]
> array_walk($Options, create_function('&$val', '$val = trim($val);'));
>
> Is this creating php variables from the contents of the $Options array?
> TIA
>
> Best,
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
>
>
>
It's trimming all elements within the array.
http://php.net/manual/en/function.array-walk.php
http://php.net/manual/en/function.create-function.php
http://php.net/manual/en/function.trim.php