[php:1:66575ca924]<?php
$txt = "ab0c2def3gh4";
echo $txtCount = strlen ($txt);
for ($i=0; $i<$txtCount; $i++){
echo $txt[$i].'<br>';
if ( (int)$txt[$i] or $txt[$i]=='0'){
$cyfry .= (string) $txt[$i];
}else{
$newText .= (string)$txt[$i];
}
}
echo 'cyfry = '.$cyfry;
echo '<br>';
echo 'text = '.$newText;
?>[/php:1:66575ca924]
A teraz dobranoc