Need low-memory consuming operation similar to array_unshift
Posted: Tue Jul 05, 2005 8:26 am
Hi
Have this huge array (up to 4MB) which I might have to extend by prepending elements to it at its' start.
array_unshift might have done the trick but resets my numerical keys, so I can't use it.
Is there some other way to do this without eating additional MBs of memory... E.g array_pop mixed with array_reverse???
Any suggestions?
regards tores
Have this huge array (up to 4MB) which I might have to extend by prepending elements to it at its' start.
array_unshift might have done the trick but resets my numerical keys, so I can't use it.
Is there some other way to do this without eating additional MBs of memory... E.g array_pop mixed with array_reverse???
Any suggestions?
regards tores