array(2) { [0]=> string(14) "$VERSION = 400" [1]=> string(3) "400" } NULL <?php
function get_version($file) {
    
    
// yes yes, should validate input
    
$content file_get_contents($file);
    
    
preg_match('|\$VERSION = (\d+)|'$content$match);
    
    
var_dump($match);
}

var_dump(get_version('file_with_version.txt'));

show_source(__FILE__);
?>