On Sun, Mar 29, 2020 at 4:08 AM Iván Arias <txigre...@hotmail.com> wrote: > > $arr[] = 1, 2, 3; // push these 3 values > $arr[] = 1, 2, ... [3, 4, 5], 6; // push these 6 values
Just to play with this... - normally an assignment evaluates to the value being assigned: var_dump($arr[] = 1); // int(1) What would this produce? var_dump($arr[] = 1, 2, 3); The first value, an array with 3 values or the full $arr? Cheers, Jakob -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php