Quantcast
Channel: Active questions tagged return-value - Stack Overflow
Viewing all articles
Browse latest Browse all 243

How to return 2 separate values from a function

$
0
0

I would like to return 2 different values with one function. These are my functions:

function example1 ($a) {    return $result1;    return $result2;}function example2 ($edit, $account, $value) {    $config ($edit);}

Like this I get $result1 in my $config-variable. But what do I need to do to get both returned values in my example1-function?


Viewing all articles
Browse latest Browse all 243

Latest Images

Trending Articles



Latest Images