<?php function testfunc($testString,$testArray) { // doesn't matter } $ReflectionFunction = new \ReflectionFunction('testfunc'); $params = $ReflectionFunction->getParameters(); $paramNames = array_map(fn($item) => $item->getName(), $params); echo "\"\${$paramNames[0]}\", \"\${$paramNames[1]}\"";
You have javascript disabled. You will not be able to edit any code.