Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.php > #3577
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | de.comp.lang.php |
| Subject | Re: Schreibweise |
| Date | 2015-11-29 01:11 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <2039474.mSqmMjhaem@PointedEars.de> (permalink) |
| References | <n39jag$ufh$1@news.albasani.net> <n39jn9$v3l$1@news.albasani.net> |
Jan Novak wrote: > ich muss mich korrigieren, es heisst natürlich nicht > > $this->prozessId = $temp["value"]; > > sondern > > $this->prozessId = $temp->value; Ersteres ist auch möglich, wenn es sich bei $temp um eine Referenz auf eine Instanz einer Klasse handelt, die eine Unterklasse von ArrayObject ist und/oder das ArrayAccess-Interface implementiert. <http://php.net/manual/en/class.arrayobject.php> > und die Variabale $value ist in der Klasse public und nicht private. Sie heisst dann „Eigenschaft“ (property). “var” sollte dementsprechend in PHP 4+ nicht mehr verwendet werden, sondern “public”. <http://php.net/manual/en/language.oop5.properties.php> -- PointedEars Zend Certified PHP Engineer Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to de.comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar
Schreibweise Jan Novak <repcom@gmail.com> - 2015-11-27 13:46 +0100
Re: Schreibweise Jan Novak <repcom@gmail.com> - 2015-11-27 13:52 +0100
Re: Schreibweise Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-11-29 01:11 +0100
Re: Schreibweise Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-11-29 01:32 +0100
Re: Schreibweise Jan Novak <repcom@gmail.com> - 2015-11-30 10:19 +0100
Re: Schreibweise Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2015-11-27 13:58 +0100
Re: Schreibweise Jan Novak <repcom@gmail.com> - 2015-11-27 14:06 +0100
Re: Schreibweise Christian Stadler <stadli@gmx.de> - 2015-11-28 00:12 +0100
csiph-web