note 115862 deleted from function.preg-grep by peehaa
| From: | peehaa@php.net | Date: | Sun, 28 Apr 2019 10:10:10 +0000 |
| Subject: | note 115862 deleted from function.preg-grep by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210739@lists.php.net to get a copy of this message | ||
Note Submitter: vickyssj7 at gmail dot com
----
A very simple example to match multiple "."(dot) in an array value:-
<?php
$array = array("23.32","22","12.009","23.43.43");
print_r(preg_grep("/^(\d+)?\.\d+\.\d+$/",$array));
?>