From: "Adam i Agnieszka Gasiorowski FNORD" <[EMAIL PROTECTED]>
> No, no spaces between letters (otherways
> it would be very easy, indeed). So there is
> no way to match the "space between alphanumeric
> chars" and split on it? I was trying to avoid
> the loop solution.
Of course there is. In fact, this example, direct from the manual, does
exactly what you want...
<?php
$str = 'string';
$chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
print_r($chars);
?>
Imagine that!---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php