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
Templeton Peck
Forum Commoner
Posts: 45 Joined: Sun May 11, 2003 7:51 pm
Post
by Templeton Peck » Sun May 18, 2003 4:27 pm
If I have a function in an include file and I have 5 variables I want returned from that function to the file calling the function, how do I do it?
AVATAr
Forum Regular
Posts: 524 Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:
Post
by AVATAr » Sun May 18, 2003 6:30 pm
make that function return an array with those values
m3mn0n
PHP Evangelist
Posts: 3548 Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada
Post
by m3mn0n » Sun May 18, 2003 6:44 pm
Simply go about as if the function was right inside the file, because technically it is when it's included at the top of the main file.