Answers for "just numeric php"

PHP
0

php show number 4 digit

echo str_pad( "1", 4, "0", STR_PAD_LEFT );
echo str_pad( "12", 4, "0", STR_PAD_LEFT );
Posted by: Guest on November-24-2021
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

Browse Popular Code Answers by Language