Short of renaming the public members, is there a way to iterate only public members of a class.
Something like
output:
C is public
D is public
-Geates
"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom
"I do not offer answers, only considerations."
- Geates's Disclaimer
Something like
Code:
class aClass
{
private A
private B
public C
public D
function iteratePublic()
{
foreach($this as $key = $val)
if (isPublic($key))
print $key." is public";
}
}
output:
C is public
D is public
-Geates
"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom
"I do not offer answers, only considerations."
- Geates's Disclaimer