Hi! I dare to consider myself a php developer, but I don't know about many of the small tricks one could use in the language. Eg: $bar = &$foo. Where can I learn more about this? Thanks, Johan Forngren
Johan Forngren wrote:
|Hi! I dare to consider myself a php developer, but I don't know about many of the small tricks one could use in the language. Eg: $bar = & $foo. Where can I learn more about this?
That's not a trick that's a fundamental. IMNSHO you don't really know the language if you aren't comfortable with references.
2006/10/6, Earl Miles <merlin@logrus.com>:
Johan Forngren wrote:
|Hi! I dare to consider myself a php developer, but I don't know about many of the small tricks one could use in the language. Eg: $bar = & $foo. Where can I learn more about this?
That's not a trick that's a fundamental. IMNSHO you don't really know the language if you aren't comfortable with references.
Yeah, but still you have to learn it somewhere... If you hint me in the right direction I could probably find it, is 'operators' the correct term to search for? I'm not a native English speaker.
For references in particular, see http://php.net/references. In my opinion, the PHP manual is rather good for learning the language elementaries of PHP: http://php.net/langref. Konstantin
You will learn tips&tricks while coding. Just use a lot of php.net . Watch out for the difference in PHP 4 and 5 about references and in general OOP. -----Original Message----- From: Karoly Negyesi [mailto:karoly@negyesi.net] Sent: Friday, October 06, 2006 7:48 PM To: development@drupal.org Subject: Re: [development] PHP tips n tricks http://www.zend.com/zend/art/ref-count.php
Ok, thank you guys. For the records; I found http://se.php.net/manual/sv/language.operators.php rather interesting, can I find something simular somewhere else than php.net? The manual is really great, but it's always good to have mutliple sources. 2006/10/6, Maciek Perlinski <maciej.perlinski@meant4.com>:
You will learn tips&tricks while coding. Just use a lot of php.net . Watch out for the difference in PHP 4 and 5 about references and in general OOP.
-----Original Message----- From: Karoly Negyesi [mailto:karoly@negyesi.net] Sent: Friday, October 06, 2006 7:48 PM To: development@drupal.org Subject: Re: [development] PHP tips n tricks
Am 06.10.2006 um 20:15 schrieb Johan Forngren:
Ok, thank you guys. For the records; I found http://se.php.net/ manual/sv/language.operators.php rather interesting, can I find something simular somewhere else than php.net? The manual is really great, but it's always good to have mutliple sources.
http://devzone.zend.com does also have lots of good tutorials, articles and introductions.
Johan Forngren wrote:
2006/10/6, Earl Miles <merlin@logrus.com <mailto:merlin@logrus.com>>:
Johan Forngren wrote: > |Hi! > I dare to consider myself a php developer, but I don't know about many > of the small tricks one could use in the language. Eg: $bar = & $foo. > Where can I learn more about this?
That's not a trick that's a fundamental. IMNSHO you don't really know the language if you aren't comfortable with references.
Yeah, but still you have to learn it somewhere...
If you hint me in the right direction I could probably find it, is 'operators' the correct term to search for? I'm not a native English speaker.
It is an operator but that won't actually explain it much. In this case: http://us2.php.net/manual/en/language.references.php I don't have a good 'compiled tips & tricks' to send you to unfortunately, but reading through the above should give you a better feel for how references work.
participants (5)
-
Earl Miles -
Johan Forngren -
Karoly Negyesi -
Konstantin Käfer -
Maciek Perlinski