Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
strip non numeric and period php
Gareth Gibson
Programming language:
PHP
2021-05-01 04:00:50
0
Q:
strip non numeric and period php
sabah
Code:
PHP
2021-07-02 13:09:12
<?php $testString = '12.322,11T'; echo preg_replace('/[^0-9,.]/', '', $testString); ?>
0
Tags
php
Related
remove decimal php
php validate only numbers
php remove duplicates from string
non-numeric value encountered php
php remove last 3 letters from string
php trim string if longer than
php is numeric
remove number after decimal in php
php filter non utf-8 characters
php strftime year 2 digits
php format int to 9 digits with preceding zeroes
remove non-uppercase character php
php remove utf non breaking space
replacing some digits of a number with asterisks php
remove first letter php
text box should accept only alphanumeric not special characters in php
php remove numbers from string
php remove characters not numbers or letters
New to Communities?
Join the community