SplFixedArray::setSize Cambia el tamaño de un array de tamaño fijo &reftitle.description; public trueSplFixedArray::setSize intsize Cambia el tamaño de un array a un tamaño fijo size. Si size es inferior al tamaño actual del array, todos los valores después del nuevo tamaño serán ignorados. Si size es mayor que el tamaño actual del array, el array será completado con valores de tipo &null;. &reftitle.parameters; size El nuevo tamaño del array. Debe ser un valor entre 0 y PHP_INT_MAX. &reftitle.returnvalues; &return.true.always; &reftitle.errors; Levanta una excepción ValueError cuando size es inferior a cero. &reftitle.changelog; &Version; &Description; 8.4.0 SplFixedArray::setSize ahora tiene un retorno provisional de true. &reftitle.examples; Ejemplo con <function>SplFixedArray::setSize</function> getSize()."\n"; $array->setSize(10); echo $array->getSize()."\n"; ?> ]]> &example.outputs;