SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[php] PHP preg replace only allow numbers
Home
Question
PHP preg replace only allow numbers
Try this:
return preg_replace("/[^0-9]/", "",$c);
Examples related to
php
•
I am receiving warning in Facebook Application using PHP SDK
•
Pass PDO prepared statement to variables
•
Parse error: syntax error, unexpected [
•
Preg_match backtrack error
•
Removing "http://" from a string
•
How do I hide the PHP explode delimiter from submitted form results?
•
Problems with installation of Google App Engine SDK for php in OS X
•
Laravel 4 with Sentry 2 add user to a group on Registration
•
php & mysql query not echoing in html with tags?
•
How do I show a message in the foreach loop?
Examples related to
preg-replace
•
Replace deprecated preg_replace /e with preg_replace_callback
•
Replace preg_replace() e modifier with preg_replace_callback
•
PHP replacing special characters like à->a, è->e
•
PHP preg replace only allow numbers
•
PHP remove special character from string
•
Replacing accented characters php
•
How to replace <span style="font-weight: bold;">foo</span> by <strong>foo</strong> using PHP and regex?
•
Remove multiple whitespaces