1--TEST-- 2ReflectionParameter::getPosition() 3--CREDITS-- 4Stefan Koopmanschap <stefan@stefankoopmanschap.nl> 5#testfest roosendaal on 2008-05-10 6--FILE-- 7<?php 8function ReflectionParameterTest($test, $test2 = null) { 9 echo $test; 10} 11$reflect = new ReflectionFunction('ReflectionParameterTest'); 12$params = $reflect->getParameters(); 13foreach($params as $key => $value) { 14 var_dump($value->getPosition()); 15} 16?> 17--EXPECT-- 18int(0) 19int(1) 20