Possible Duplicate:
Extract numbers from a string
How can I find a number in a string with PHP? for example :
<?
$a="Cl4";
?>
i have a string like this 'Cl4' . i wanna if there is a number like '4' in the string give me this number but if there is not a number in the string give me 1 .