Call a PHP function in another file.

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
tommy1987
Forum Commoner
Posts: 92
Joined: Tue Feb 21, 2006 8:35 pm

Call a PHP function in another file.

Post by tommy1987 »

I have a PHP file and want to call a method in another file.
Currently I am using include to just include the file but I want to call a specific function in that file.

Please help me!

Thanks very much in advance.

-Tom
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

So call it. There's nothing fancy that needs to be done to call a function defined in an included file. :?
tommy1987
Forum Commoner
Posts: 92
Joined: Tue Feb 21, 2006 8:35 pm

Post by tommy1987 »

lol true, what an idiot i am.
Post Reply