/ Published in: PHP
Will help convert string to number OR get number in a selected string.
Expand |
Embed | Plain Text
<?php // extract numbers from a string $string = "The 1. Quick and 2. Brown fox said 3. (!@*(#!@*"; echo $new_string; // output: 123 ?>
You need to login to post a comment.
