PHP » GoLang |
login |
register |
about
|
GoLang pht\Vector::unshift
request it (406)
GoLang replacement for PHP's pht\Vector::unshift
[edit | history]
pht\Vector::unshift(PECL pht >= 0.0.1) pht\Vector::unshift — Unshifts a value to the vector front DescriptionThis method unshifts a value to the front of a vector (in linear time). The vector will automatically be resized if it is not large enough. Parameters
Return ValuesNo return value. Examples
Example #1 Unshifting a value to the front of a vector
<?php The above example will output: object(pht\Vector)#1 (3) { [0]=> int(2) [1]=> int(1) [2]=> int(0) } |
more
Recently updated
more
Most requested
more
Last requests
|