PHP array_push array function

  • 2020-03-31 19:58:53
  • OfStack

1.
$arr = array ();
$arr [] = ' ';
2.
$arr = array ();
Array_push ($arr, ");

Just did a 100, 000 loop insert, and it's still faster than the first one! (insert a number in the loop, 100,000 times, about 0.04 for the first type and about 0.08 seconds for the second type)

Related articles: