unshift
# given [1..5]
$array->unshift(-2,-1,0); # [-2,-1,0,1,2,3,4,5]
The unshift method prepends the array by pushing the agruments onto it and returns itself. This method returns a data type object to be determined after execution. Note: This method modifies the array.
unshift() : Any
method
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 10:
Unknown directive: =name
- Around line 14:
Unknown directive: =usage
- Around line 20:
Unknown directive: =description
- Around line 26:
Unknown directive: =signature
- Around line 30:
Unknown directive: =type