- Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
- testtest2
<?php
use ArchitectureStandards\Helpers\ErrorFormatter;
$re = '/@param\s+(\S+)\s+\$(\S+)/m';
$str = '/*@param test $arno
@param test2 $lucie';
preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
foreach ($matches as $paramType) {
echo $paramType[1];
}