Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array prepend php

$arr = array('item2', 'item3', 'item4');
array_unshift($arr , 'item1');
print_r($arr);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #prepend #php
ADD COMMENT
Topic
Name
2+2 =