PHP » GoLang |
login |
register |
about
|
GoLang pht\Vector::push
request it (368)
GoLang replacement for PHP's pht\Vector::push
[edit | history]
pht\Vector::push(PECL pht >= 0.0.1) pht\Vector::push — Pushes a value to the vector DescriptionThis method pushes a value onto the end of a vector (in constant time). The vector will automatically be resized if it is not large enough. Since the pht\Vector class supports array access, new values can also be pushed onto the vector using the empty subset notation ([]). Parameters
Return ValuesNo return value. Examples
Example #1 Pushing values to a vector
<?php The above example will output: object(pht\Vector)#1 (2) { [0]=> int(1) [1]=> int(2) } |
more
Recently updated
more
Most requested
more
Last requests
|