This is a discussion on PHP equivalent to super()? within the PHP Language forums, part of the PHP Programming Forums category; PHP Code: <?phpclass SuperClass {var $mySuperClassVar;function SuperClass($myVar) {$this->mySuperClassVar = $...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
PHP Code:
Quote:
"super" keyword that evokes methods or constructor of the class' parent class. I can't find anything online on this and hoped maybe one of you guys came up with a nice workaround for this in PHP 4.3.2+ that I could learn. Or point me in the right, open-source, direction for me to figure this out. Thanx Phil |
|
|||
|
Check out this page in the manual:
http://www.php.net/manual/en/keyword.parent.php -- Tony Marston http://www.tonymarston.net "Phil Powell" <soazine@erols.com> wrote in message news:1cdca2a7.0406020648.19bbbf9e@posting.google.c om... > PHP Code:
> Quote:
> I am interested in finding out if PHP has an equivalent to the Java > "super" keyword that evokes methods or constructor of the class' > parent class. I can't find anything online on this and hoped maybe > one of you guys came up with a nice workaround for this in PHP 4.3.2+ > that I could learn. Or point me in the right, open-source, direction > for me to figure this out. > > Thanx > Phil |
|
|||
|
"Tony Marston" <tony@NOSPAM.demon.co.uk> wrote in message news:<c9l61i$l0f$1$830fa17d@news.demon.co.uk>...
> Check out this page in the manual: > http://www.php.net/manual/en/keyword.parent.php Ah, that's why I couldn't find it, it wasn't identified as PHP version of the Java "super" keyword that I could find on the page, thanx Phil > > -- > Tony Marston > > http://www.tonymarston.net > > > "Phil Powell" <soazine@erols.com> wrote in message > news:1cdca2a7.0406020648.19bbbf9e@posting.google.c om... > > PHP Code:
> > Quote:
> > I am interested in finding out if PHP has an equivalent to the Java > > "super" keyword that evokes methods or constructor of the class' > > parent class. I can't find anything online on this and hoped maybe > > one of you guys came up with a nice workaround for this in PHP 4.3.2+ > > that I could learn. Or point me in the right, open-source, direction > > for me to figure this out. > > > > Thanx > > Phil |
|
|||
|
It is not the function of the PHP manual (or any other language manual for
that matter) to identify the equivalent terminology in Java. That is why searching the manual using Java keywords is not a good idea. -- Tony Marston http://www.tonymarston.net "Phil Powell" <soazine@erols.com> wrote in message news:1cdca2a7.0406030737.12520e73@posting.google.c om... > "Tony Marston" <tony@NOSPAM.demon.co.uk> wrote in message news:<c9l61i$l0f$1$830fa17d@news.demon.co.uk>... > > Check out this page in the manual: > > http://www.php.net/manual/en/keyword.parent.php > > Ah, that's why I couldn't find it, it wasn't identified as PHP version > of the Java "super" keyword that I could find on the page, thanx > > Phil > > > > > -- > > Tony Marston > > > > http://www.tonymarston.net > > > > > > "Phil Powell" <soazine@erols.com> wrote in message > > news:1cdca2a7.0406020648.19bbbf9e@posting.google.c om... > > > PHP Code:
> > > Quote:
> > > I am interested in finding out if PHP has an equivalent to the Java > > > "super" keyword that evokes methods or constructor of the class' > > > parent class. I can't find anything online on this and hoped maybe > > > one of you guys came up with a nice workaround for this in PHP 4.3.2+ > > > that I could learn. Or point me in the right, open-source, direction > > > for me to figure this out. > > > > > > Thanx > > > Phil |