Hi,
ich bin mir nicht sicher, aber stimmt es, dass eine man nicht direkt auf ein Array zugreifen kann, welches von einer Funktion zurückgegeben wird?
[...]
Ist der erste Weg ($test = $objekt -> get_array()[0];) in Php nicht möglich?
Ja. PHP ist eine der wenigen Sprachen, in denen das nicht moeglich ist.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“