Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php filter only numbers
Mar Zum
Programming language:
PHP
2021-07-10 16:50:51
0
Q:
php filter only numbers
Sorcha NicEalair
Code:
PHP
2021-06-26 03:31:57
$output = preg_replace( '/[^0-9]/', '', $string );
2
Tags
number
php
filter
Related
php keep only numbers in string
php array filter
php validate only numbers
how to check if PHP variable contains non-numbers?
check if date is within range php
create array from string with commas php
array filter php get first object
php array filter syntax
get multiple checkbox value in php
php filter_var name
how to search for a value in an array php
multiple value match in array php
php filter array
php get only numbers from string
php filters
filter value in array php return single value
php filter validate email
how can use filter in php7.2
php filter var mail
New to Communities?
Join the community