-2
Ist foo[]
ein Array?
Im folgenden Code ist ein Array-Element foo[]
zugeordnet? Und gibt es einen Array-Schlüssel, der automatisch zugeordnet wird?
$this->foo[] = 'hello world';
Ist foo[]
ein Array?
Im folgenden Code ist ein Array-Element foo[]
zugeordnet? Und gibt es einen Array-Schlüssel, der automatisch zugeordnet wird?
$this->foo[] = 'hello world';
Dies fügt ein Element zu dem Ende des foo
Arrays.
Es ist das gleiche wie mit array_push()
.
nein, das ist das selbe wie schieben Elemente zum Array –
das ist ein Push. traurig. –