search

Home  >  Q&A  >  body text

What is the difference between array_push and new array?

I don’t know what stack means. Looking at the code, it seems to be similar to adding an array. What's the difference?

孽孽孽孽1794 days ago1336

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2020-02-28 17:54:45

    array_push() Push one or more units to the end of the array (push)

    array_pop() Pop the last unit of the array (pop)

    https://www.php.cn/php-weizijiaocheng-364112.html

    This article is very detailed, you can read it

    reply
    0
  • Cancelreply