Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #5366
| From | "Leonardo Azpurua" <leonardo@exmvps.org> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Class as arguments while function defenition |
| Date | 2012-04-08 10:39 -0430 |
| Organization | A noiseless patient Spider |
| Message-ID | <jls9ne$lid$1@dont-email.me> (permalink) |
| References | <634c4771-d34d-4710-8ea4-5d7a21b3f18b@oo9g2000pbc.googlegroups.com> <jls2gq$g5k$1@dont-email.me> |
"Jerry Stuckle" <jstucklex@attglobal.net> escribió en el mensaje
news:jls2gq$g5k$1@dont-email.me...
> On 4/8/2012 3:01 AM, sakthi wrote:
>> public static function render( ClassA&$parser ) {
>> }
>>
>> Here in render function, ClassA is a class which is passed as an
>> argument. What does this mean ?
>
> http://www.php.net/manual/en/language.oop5.typehinting.php
Hi,
I guess the question is more about the presence of the reference operator.
It makes me curious too. Every variable containing a reference to an object
is in tiself a reference.
Is this function expected to assign a diference instance to that reference?
--
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Class as arguments while function defenition sakthi <sakthi92@gmail.com> - 2012-04-08 00:01 -0700
Re: Class as arguments while function defenition Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-08 09:06 -0400
Re: Class as arguments while function defenition "Leonardo Azpurua" <leonardo@exmvps.org> - 2012-04-08 10:39 -0430
Re: Class as arguments while function defenition Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-08 14:12 -0400
Re: Class as arguments while function defenition Michael Fesser <netizen@gmx.de> - 2012-04-10 14:58 +0200
csiph-web