Numeric value only
Linux, Apache, MySQL, PHP
2
Posts
2
Posters
0
Views
1
Watching
-
I want to get only numeric from a variable. Example:- $a=1452kk; $b=kj4554; I want only numeric value like 1452 and 4554 I can do this with parseFloat and trim in java script but how can get only numeric value in php ?
http://uk2.php.net/trim[^] or :
$a=1452kk;
$a = implode("", explode("kk", $a));
echo $a;//outputs: 1452