phpbar.de logo

Mailinglisten-Archive

[php] array_splice-Alternative unter PHP3

[php] array_splice-Alternative unter PHP3

Stefan Schwardt newsletter_(at)_stefan-schwardt.de
Fri, 19 May 2000 16:36:40 +0200


Moin Christoph Lauterbach, moin Liste,

CL> $array = array("1","2","3","4","5","6","7","8","9","10","11","12","13");
CL> $array = array_splice($array, 10);
CL> // Array ist nun: array("1","2","3","4","5","6","7","8","9","10");

Fülle doch ein neues array $temp[] mit den Elementen bis $array[10], und
ersetze den Inhalt von $array[] durch den von $temp[].
Ganz spontane Idee.


-- 
Stefan Schwardt.




php::bar PHP Wiki   -   Listenarchive