Search
 
SCRIPT & CODE EXAMPLE
 

PHP

strip non numeric and period php

<?php
    $testString = '12.322,11T';
    echo preg_replace('/[^0-9,.]/', '', $testString);
?>
Comment

PREVIOUS NEXT
Code Example
Php :: autoloader php 
Php :: php html to pdf 
Php :: drop table phpmyadmin 
Php :: php difference between two dates in seconds 
Php :: php array differ 
Php :: jquery send form data to php 
Php :: echo errors php 
Php :: symfony messenger rabbitMQ 
Php :: string between two strings 
Php :: wordpress debug mode 
Php :: wp change num words exerpct 
Php :: orwhere in wherehas laravel 
Php :: laravel bd query 
Php :: contact form 7 remove br 
Php :: laravel collection search 
Php :: how to create static variable in model laravel 
Php :: generate fake name php 
Php :: laravel default encryption mode 
Php :: signup form in php 
Php :: two column date compare in php 
Php :: jquery is less than or equal to 
Php :: file upload using ajax in laravel 
Php :: laravel get route path uri 
Php :: Main features of php 
Php :: keep line breaks in textarea 
Php :: wp-config for production 
Php :: laravel notification 
Php :: laravel eloquent get one column value 
Php :: how to check if file is empty in php 
Php :: Codeigniter 3 Pass anything in query string 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =