Method allocate() Method allocate array allocate(int size) array allocate(int size, mixed init) Description Allocate an array of size elements. If init is specified then each element is initialized by copying that value recursively. See also sizeof(), aggregate(), arrayp()