$string = "$4.9/inch";
$res = filter_var($string, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);
echo $res;
It will print4.9
AI Development & Integration
AI Consulting & Strategy
Modern Solutions
Enterprise Solutions
Web Solutions
Full-Stack Solutions
Commerce & Consumer
Health & Education
Industrial & Infrastructure
Frontend Developers
Backend Developers
E-Commerce Developers
$string = "$4.9/inch";
$res = filter_var($string, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);
echo $res;
It will print4.9
Continue reading with these hand-picked articles on similar topics.
By enabling an innovative digital experience that fulfills new-age demands.
Your idea is 100% protected by our Non-Disclosure Agreement