ArrayObject::offsetSet Establece el valor en el índice especificado &reftitle.description; public voidArrayObject::offsetSet mixedindex mixednewval Establecer el valor en el índice especificado por newval. &reftitle.parameters; index El índice a ser establecido. newval El nuevo valor para el index. &reftitle.returnvalues; &return.void; &reftitle.examples; Ejemplo de <methodname>ArrayObject::offsetSet</methodname> offsetSet(4, 'cuatro'); $arrayobj->offsetSet('grupo', array('g1', 'g2')); var_dump($arrayobj); $arrayobj = new ArrayObject(array('cero','uno')); $arrayobj->offsetSet(null, 'último'); var_dump($arrayobj); ?> ]]> &example.outputs; string(11) "prop:public" [4]=> string(6) "cuatro" ["grupo"]=> array(2) { [0]=> string(2) "g1" [1]=> string(2) "g2" } } object(ArrayObject)#3 (3) { [0]=> string(4) "cero" [1]=> string(3) "uno" [2]=> string(6) "último" } ]]> &reftitle.seealso; ArrayObject::append