- var_dump: documentation ( source)
- array_shift: documentation ( source)
- explode: documentation ( source)
- trim: documentation ( source)
- array_pop: documentation ( source)
<?php
$matches = array(' protected $pkgVersion = \'1.1\';');
$exploded = explode('=', array_shift($matches));
$result = trim(array_pop($exploded), "\t ;'\"");
var_dump($result);