- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$doc = "/**
* This exception is thrown when no constant function is found.
*
* @author Time.ly Network Inc.
* @since 2.0
*
* @instantiator Ai1ec_View_Factory Category_Exception
* @package AI1EC
* @subpackage AI1EC.Config
*/";
preg_match_all('#^\s*[*]\s*@instantiator\s+(.*)$#im', $doc, $annotations);
echo var_dump($annotations);