building a function with multiple outputs


Posted on 16th Feb 2014 07:03 pm by admin

I want to build a function that has multiple outputs.

I know but am not to sure how I should go about that, the only thing I know won't work is
return a;
return b;
return c;

that will return one result at best. what I need to do is output a b and c from the same function, but I am looking for ideas on how to do that.

No comments posted yet

Your Answer:

Login to answer
337 Like 12 Dislike
Previous forums Next forums
Other forums

unexpected T_STRING
error log "[Sat Jan 09 18:27:58 2010] [error] [client 127.0.0.1] PHP Parse error: syntax error

user data not transferring to new page
I'm a PHP learner. After an index.php page, the user goes to a login.php page. Both pages seem to

Display certain image depending on time of year
Hi, I am new to these forums and would really appreciate some advice on a piece of coding I have don

PHP login form help (Done Most of It)
Hi i am having a problem, when i try logging in it is always saying "Invalid Login" im not

Is there something wrong?
Hi all,

Just a quick question... can someone look at this code and see if something is wrong?

Sum of Values in an Array
This is probably really simple... but it's been years since I've written anything, so bare with me!<

function not returning the correct value
I have a program that needs to return a value from a function. I have an output statement inside the

get the country of visitor and display content based on that
Hello all,

I have seen that Google analytics can tell you where a visitor is coming from and

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

php code to accept and delete incoming data
Using following HTML Code please show me how to write PHP code to accept and delete the incoming dat

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash