array_unshift() 는 array 의 앞에 전달되어진 원소를 첨가한다. 원소의 목록은 전체적으로 프리펜드되고, 그 결과 프리펜드된 원소는 동일한 순서로 남아있게 된다. array_unshift() prepends passed elements to the front of the array. Note that the list of elements is prepended as a whole, so that the prepended elements stay in the same order.
array 의 새로운 원소의 수를 반환한다.
$queue 가 "p4", "p5", "p6", "p1", and "p3", 5개의 원소를 갖는 결과가 된다.
array_shift(), array_push(), 그리고 array_pop()를 참고하라.