Hallo Thomas.
wie erhalte ich aus dem string '31{1}1{2}6{100}12' nur den Wert VOR der ersten geschwungenen Klammer => 31
anderes Bsp. '4{523}32{5}24' => 4
Recht einfach, indem du mittels strpos nach der ersten geschweiften Klammer suchst und diese Positionsangabe zum Extrahieren eines Teilstrings per substr verwendest.
Einen schönen Mittwoch 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]