note 103198 deleted from function.phpversion by danbrown
| From: | danbrown@php.net | Date: | Thu, 31 Mar 2011 13:48:39 +0000 |
| Subject: | note 103198 deleted from function.phpversion by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178375@lists.php.net to get a copy of this message | ||
Note Submitter: phpler
----
@pl DOT baasch AT skycube DOT net:
to cover all cases at once you should use this:
preg_replace('/^(\d+\.\d+\.\d+).*$/', '$1', phpversion())