function UnixTime($value1) {
$time = time();
return 'The current time is: ' . $time;
}
I've got a web service and it returns results like above, however I want to have another function which will return results from my MySQL DB. I want to know to turn so many resutls.
I thought of
- Return a string with the MySQL dump
- Return it in some form or an array
Both seem messy, do we have any other ideas?