Re: explode and implode

From: Date: Fri, 11 Aug 2000 01:49:39 +0000
Subject: Re: explode and implode
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11256@lists.php.net to get a copy of this message
On 10 Aug, Craig Henderson wrote: > Thanks, I managed to find that info after I sent the email ;-) But it > appears my host doesn't have the proper modules installed for PHP, because I > get this error returned when I try: Fatal error: Call to unsupported or > undefined function array_slice() > > Any other ideas? (rather than writing a function that does something like > array_slice) > > --Craig Henderson SAE, Adgrafix Corporation Array_slice is PHP4. What about a quick and dirty loop that takes the elements 0-24 of the array and appends them to $newstring. for($i=0,$i++,$i<25){ $newstring .= $array[$i] } And the syntax is wrong but I'll let you look it up :-) Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#11256) next »