PHP variable splitting
From: Papago (me_at_myplace.com)
Date: 08/27/04
- Next message: Andy Hassall: "Re: PHP variable splitting"
- Previous message: James Van't Slot: "file_exists() fails"
- Next in thread: Andy Hassall: "Re: PHP variable splitting"
- Reply: Andy Hassall: "Re: PHP variable splitting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Aug 2004 16:53:23 -0400
Is there a command in PHP that will allow me to split a text variable into
an array by length rather than using a delimiter? What I want to do is have
it separate into an array entity for every 2 characters. So if you put in
the word "european" you would get:
$array[0] = "eu"
$array[1] = "ro"
$array[2] = "pe"
$array[3] = "an"
Is there a PHP command that will do this for me in one step?
- Next message: Andy Hassall: "Re: PHP variable splitting"
- Previous message: James Van't Slot: "file_exists() fails"
- Next in thread: Andy Hassall: "Re: PHP variable splitting"
- Reply: Andy Hassall: "Re: PHP variable splitting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|