Tag: array_push

  • array_push (arrName, varName) function in php

    array_push (arrName, varName) function in php

    array_push() function use an array as a stack, and it pushes the passed variables at the end of the array. The length of the array increases automatically by the number of variables pushed into the array_push function. It accepts two parameters, the first parameter to be an array and the second parameter can be any…