Re: For my understanding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jul 25, 2015 at 9:33 PM, Karl DeSaulniers <karl@xxxxxxxxxxxxxxx>
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

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux