Menu
Hi guys,
I really need your help, been trying to figure out how to do this.
I want to retrieve the name of an object methods…but i just want the name…and i also don’t want to retrieve __construct()
[code=php]
$lines = array (
[0] => ‘public function __construct()’;
[1] => ‘public function approved()’;
[2] => ‘public function index($test)’;
);
I don’t know anything about regular expressions…?
i.e. from the line “public function approved()”, I just want to retrieve “approved” and “public function index($test)”, would get me just “index”
It would be nice if it won’t return me “__construct()”
I really need help here…?