Archive

Posts Tagged ‘resize array php’

Trunc or Resize Array Size in PhP

September 9th, 2008 1 comment
Trunc or Resize Array Size in PhP If you want to modify the size of an array, larger or smaller than its current size, use array_pad() and array_splice() function. How to make an array grow: /***** start with 2 elements *****/ $array = array('element1', 'element2'); /***** grow to 4 elements *****/ $array ...
GoCache - ByREV-Cache v1.0 - live served in : 0.432236 sec (gzip)