Get augments of a method

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
BlueFlame
Forum Commoner
Posts: 33
Joined: Wed Oct 12, 2005 5:21 am

Get augments of a method

Post by BlueFlame »

Is it possible to get the augments of a method, not the values but the actual names of the variables used, and to do this outside of the class.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Take a look at Reflection to see if that kind of data is available.

http://www.php.net/manual/en/language.o ... ection.php
(#10850)
BlueFlame
Forum Commoner
Posts: 33
Joined: Wed Oct 12, 2005 5:21 am

Post by BlueFlame »

Never heard of Reflective programming but it certainly looks sexy. Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The names of the arguments is arbitrary, however you can examine that information for a user created function. Internal ones don't reflect much.
BlueFlame
Forum Commoner
Posts: 33
Joined: Wed Oct 12, 2005 5:21 am

Post by BlueFlame »

What do you mean by "The names of the arguments is arbitrary".
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

The names do not matter.
Post Reply