fork download
  1. <?php
  2. $a = "#Fri, 14 Sep 2012 12:29:26 +0400
  3. #Wed Aug 08 17:40:54 MSD 2012
  4. version=116
  5. ";
  6. preg_match('/.*version=([0-9]+?)\n*/Usmi', $a, $matches); $version = $matches[1];
  7. echo $version; //116
Success #stdin #stdout 0.03s 13112KB
stdin
Standard input is empty
stdout
116