Answers for "print number and string php"

PHP
0

get numbers from string php

phpCopy<?php 
$string = 'Sarah has 4 dolls and 6 bunnies.';
preg_match_all('!\d+!', $string, $matches);
print_r($matches); 
?>
Posted by: Guest on April-23-2021
0

php print number

echo 1;
Posted by: Guest on August-01-2021

Code answers related to "print number and string php"

Browse Popular Code Answers by Language