PHP variable splitting

From: Papago (me_at_myplace.com)
Date: 08/27/04


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?



Relevant Pages