I have a string which is combination of letters and digits. For my application i have to separate a string with letters and digits: ex:If my string is \"12jan\" i hav to ge
Try This :
$string="12jan"; $chars = ''; $nums = ''; for ($index=0;$indexNums: -$nums-"; function isNumber($c) { return preg_match('/[0-9]/', $c); }