RE: [PHP] explode and implode
| From: | Arc | Date: | Fri, 11 Aug 2000 02:07:51 +0000 |
| Subject: | RE: [PHP] explode and implode | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11257@lists.php.net to get a copy of this message | ||
Thanks Dave, that's what I ended up doing, it was just as easy to do I'm
just kind of lazy ;-)
--Craig Henderson SAE, Adgrafix Corporation
-----Original Message-----
From: David Robley [mailto:huntsman@www.nisu.flinders.edu.au]
Sent: Thursday, August 10, 2000 6:50 PM
To: craigh@mail.ocis.net
Cc: php-general@lists.php.net
Subject: Re: [PHP] explode and implode
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net