Maybe it's because it's Saturday PM, and my mind is more focussed on the night out ahead, but could someone throw some cold water on me to wake me up and tell me why I cannot do this!
I have a function which basically grabs two values from a database -
$value1=<a href="htttp://somesite.com">
$value2=</a>
to keep it sweet.
at the end, I have
echo "$value1 Test Link </a>";
return $value1;
and then back in the code, I have
echo "$value1 Test Link </a>";
the first echo before the function ends works, the one back in the code with $value1 returned doesn't. WTF?
(Also, as a side note - do I have to put value1 and value2 in an array if I want them both returned or will
return $value1, $value2;
work?
(as I cannot return() one value, I can't test my side note...
Cheers.