Ask a Question related to PHP Development, Design and Development.
-
Papago #1
PHP variable splitting
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?
Papago Guest
-
splitting a PDF file
Does anyone know if or how to split a multiple page PDF file into single page PDF files in Acrobat 7? I heard this could be done without purchasing... -
Intelligent PDF Splitting
Does anyone have information about intelligent PDF splitting, using either command line or applescript? -
Splitting a CSV list
I have the following type of data in a page and I need to be able to pull each and every CN value without the CN or anything behind it. ... -
splitting a string
Hi: I want to split the string 0.0.0.0.1.10.1.30.1.10.1.30.1 into 4 variables: 0.0.0.0, 1, 10.1.30.1 and 10.1.30.1 any suggestions? TIA... -
Splitting up an XML File
I have an XML file that looks like this: <root> <economist publications="true" > <name> <first>John</first> <last>Doe</last> </name>... -
Andy Hassall #2
Re: PHP variable splitting
On Fri, 27 Aug 2004 16:53:23 -0400, "Papago" <me@myplace.com> wrote:
[url]http://uk.php.net/manual/en/function.str-split.php[/url]>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?
Otherwise a simple loop with substr would do it.
Or preg_split.
--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Andy Hassall Guest



Reply With Quote

