Hallo dedlfix.
Die Schreibweisen $string{position} und $string[position] bewirken bei Strings das gleiche. (Bei diesem Thema gab/gibt es etwas Hin und Her. Die []-Schreibweise ist aber diejenige mit Zukunft.)
Apropos Zukunft: wird es irgendwann möglich sein, einfache Datentypen zum Type–Hinting in Klassenmethoden angeben zu können? Momentan ist man ja auf Objekt und Array beschränkt.
Einen schönen Sonntag noch.
Gruß, Mathias
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]