- Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
- Array ( [0] => @param test $arno [1] => @param test2 $lucie ) Array ( [0] => test [1] => test2 ) Array ( [0] => arno [1] => lucie )
<?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);
foreach ($matches as $match) {
print_r($match);
}