note 42797 modified in function.array-splice by vrana

From: Date: Tue, 17 Aug 2004 14:49:38 +0000
Subject: note 42797 modified in function.array-splice by vrana
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79683@lists.php.net to get a copy of this message
array_splice does work when replacing with objects. As stated in the manual, you have to embed the object in an array: <?php array_splice ($myarray, $offset, 0, Array($myobjet)); ?> --was-- array_splice does work when replacing with objects. As stated in the manual, you have to embed the object in an array: array_splice ($myarray, $offset, 0, Array($myobjet)); http://php.net/manual/en/function.array-splice.php

« previous php.notes (#79683) next »