Posted by Tom Thackrey on 10/22/05 17:51
On 22-Oct-2005, "Tobierre" <No-Reply@hotmail.com> wrote:
> If I have the following example statement
>
> trim(strtolower(str(ucwords($var)));
>
> When parsing PHP will process $var in the following order
>
> firstly trim white space
> secondly convert $var value to lower case
> thirdly capitalize first letter of each word
>
> Right? What I am basically asking is it the rule that PHP processes
> nested
> statements from the outside in or vice versa?
No. Like all programming languages the innermost function will be executed
first followed by the next innermost...
--
Tom Thackrey
www.creative-light.com
tom (at) creative (dash) light (dot) com
do NOT send email to jamesbutler@willglen.net (it's reserved for spammers)
Navigation:
[Reply to this message]
|