- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$content = ' @see MyType this is a description
spanning over multiple lines.
@ignore
@link http://www.phpdoc.org';
preg_match_all('/(?<T_TAG_NAME>@[\pL-_]+\s*([\s\S]*))/ux', $content, $matches, PREG_SET_ORDER);
var_dump($matches);
preg_match_all('/(?<T_TAG_NAME>@[\pL-_]+)[\s]*(?<TAG_CONTENT>[\s\S]*)(?=\n\s*\@)/ux', $content, $matches, PREG_SET_ORDER);
var_dump($matches);