Jump to content

[SOLVED] str_split funtion HELP!


Alexk

Recommended Posts

try this

function strsplit($data)
{
return  preg_split('/./si', $data);
}

 

EDIT:

i check php.net to check if preg_split was support by 4 (just had to check) and found this

<?php
$str = 'string';
$chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
print_r($chars);
?> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.