ktos mi powie dlaczego cos takiego nie chodzi?
$test_string2 = "aa 11 22 01221 absc 012112";
$s_array = split('/\s+/', $test_string2);
foreach($s_array as $key) {
echo "element {$key} <br />";
}
a to chodzi znakomicie, czy funkcja split nie zna \s ???
$test_string2 = "aa 11 22 01221 absc 012112";
$patterns[0] = '/\s+/';
$replacements[0] = ':';
$test_string2 = preg_replace($patterns, $replacements, $test_string2);
print "
{$test_string2}
";
$s_array = split(':', $test_string2);
foreach($s_array as $key) {
echo "<br />element {$key} ";
}