|
-
Jul 25th, 2007, 09:06 PM
#1
Thread Starter
Fanatic Member
Call function via a string name
Let's say I have a "post" and "list" strings and I would like to call Post class and invoke the list method. How do I do that?
Thanks in advance.
Last edited by nebulom; Jul 25th, 2007 at 10:04 PM.
-
Jul 25th, 2007, 09:56 PM
#2
Re: Call function via a string name
call_user_func(array('Post', 'list'));
-
Jul 25th, 2007, 10:04 PM
#3
Thread Starter
Fanatic Member
Re: Call function via a string name
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|