Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Yes Richard, In fact I know ActionScript and JavaScript and I'm trying to nail the peculiarities of php. I totally agree. I am not used to use ' -> ' to call a method if you know what I mean, but the rest is quite familiar, phew! :) Aside from that, this was just one of the things I could not real

Re: RES: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Cheers Thiago, In fact this was going to be my next question. I think I will report a documentation bug, just because, after all the discussion we had today, I realize that this is quite a common behaviour in other languages, but for somebody new to languages, being them programming or scripting o

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 5:05 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > After you've learned a couple computer languages, the rest are mostly > about "differences" and "gotchas" rather than learning something new. > > Ok, except the Lisp/Scheme/Prolog stuff, where you have to think > inside-

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 10:12 am, Svevo Romano wrote: > Still, I jusy wonder how Jochem knew that the line is only executed > the > first time a function is called while this info is not available on > the > online manual. It's maybe all about how close you are to the community > and > how many degre

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 6:16 am, Svevo Romano wrote: > Hello, > > I got this e-mail address from the ŒAdd note¹ page within the php.net > website. I was going to post something that was a question and I > realised I > was in the wrong place :) > > I have 2 basic questions and I¹m sorry if they may se

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread tedd
At 4:12 PM + 3/4/08, Svevo Romano wrote: Hi Daniel, Many thanks to you as well. I really appreciate your effort in answering my queries guys. It means I'll do my best with books and the online manual. And today I've probably found the best resource. The community! Still, I jusy wonder how J

RES: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Thiago Pojda
-Mensagem original- De: Svevo Romano [mailto:[EMAIL PROTECTED] Hi there, Many thanks for your answer. I've also gone through your example and it took me 10 minutes to understand how the operator precedence was working there. Was expecting 1 on the first call :) But this is not the

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Just one word, Thanks :) S In 4/3/08 16:22, David Giragosian, [EMAIL PROTECTED] ha scritto > I would hazard a guess that the 'static' keyword and functionality > comes from ANSI C. I just pulled "The C Programming Language" by > Kernighan and Ritchie from the book case and it is described there

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread David Giragosian
I would hazard a guess that the 'static' keyword and functionality comes from ANSI C. I just pulled "The C Programming Language" by Kernighan and Ritchie from the book case and it is described there in it. Essential book, by the way, IMHO. -- -David. When the power of love overcomes the love o

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 11:12 AM, Svevo Romano <[EMAIL PROTECTED]> wrote: > Still, I jusy wonder how Jochem knew that the line is only executed the > first time a function is called while this info is not available on the > online manual. It's maybe all about how close you are to the community and

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Ok Jochem, It makes a lot of sense. Now I know what I can expect from the manual and what kind of approach I should have. I hope to contribute as well in the future. Many thanks, S In 4/3/08 16:11, Jochem Maas, [EMAIL PROTECTED] ha scritto > Svevo Romano schreef: >> Hi there, >> >> Many thank

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Hi Daniel, Many thanks to you as well. I really appreciate your effort in answering my queries guys. It means I'll do my best with books and the online manual. And today I've probably found the best resource. The community! Still, I jusy wonder how Jochem knew that the line is only executed the f

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Jochem Maas
Svevo Romano schreef: Hi there, Many thanks for your answer. I've also gone through your example and it took me 10 minutes to understand how the operator precedence was working there. Was expecting 1 on the first call :) But this is not the point. You've nailed my question very preciseley in yo

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 7:16 AM, Svevo Romano <[EMAIL PROTECTED]> wrote: > The second question has to do with the online manual. I¹ve found several > things on that manual specified in comments and not in the actual manual > part of it. What is the nature of the manual? Contributions from volutee

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Hi there, Many thanks for your answer. I've also gone through your example and it took me 10 minutes to understand how the operator precedence was working there. Was expecting 1 on the first call :) But this is not the point. You've nailed my question very preciseley in your first answer: 'the pr

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Jochem Maas
Svevo Romano schreef: Hello, I got this e-mail address from the ŒAdd note¹ page within the php.net website. I was going to post something that was a question and I realised I was in the wrong place :) I have 2 basic questions and I¹m sorry if they may seem too basic. I¹m a bit new to php. The

[PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Hello, I got this e-mail address from the ŒAdd note¹ page within the php.net website. I was going to post something that was a question and I realised I was in the wrong place :) I have 2 basic questions and I¹m sorry if they may seem too basic. I¹m a bit new to php. The first question has to do