PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php <?php $string = "The price is 100 dollars and 50 cents."; $characters = str_split($string); $numbers = array_filter($characters, 'ctype_digit'); echo implode(' - ', $numbers) . PHP_EOL; // Output: 10050 ?>
Show:  
Copy Clear