<?php
$a = "#Fri, 14 Sep 2012 12:29:26 +0400
#Wed Aug 08 17:40:54 MSD 2012
version=116
";
preg_match('/.*version=([0-9]+?)\n*/Usmi', $a, $matches); $version = $matches[1]; echo $version; //116
PD9waHAKJGEgPSAiI0ZyaSwgMTQgU2VwIDIwMTIgMTI6Mjk6MjYgKzA0MDAKCQkjV2VkIEF1ZyAwOCAxNzo0MDo1NCBNU0QgMjAxMgoJCXZlcnNpb249MTE2CgkJIjsKCQlwcmVnX21hdGNoKCcvLip2ZXJzaW9uPShbMC05XSs/KVxuKi9Vc21pJywgJGEsICRtYXRjaGVzKTsgJHZlcnNpb24gPSAkbWF0Y2hlc1sxXTsKCQllY2hvICR2ZXJzaW9uOyAvLzExNgoJCWV4aXQ7