I try to split the string A1B22C333 to get the array [0] => A1
, [1] => B22
, [2] => C333
. This is my failed attempt:
$mystring = "A1B22C333";
$pattern = "[\w\d+]";
$arr = preg_split("/".$pattern."/", $mystring);
print_r($arr);
But i get:
Array ( [0] => [1] => [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => )