Hi,
I'd like to know of the best way to catch all errors and warning I generated in my functions, to print them when all functions have been executed?
I have functions than run MySQL queries and do other stuff:
insert_object($object_info);
insert_time($time);
...
Some functions use other functions to do their job.
Each of these functions can generate a message if something went wrong: "time already entered", etc...
I don't want to do echo calls inside the functions: I want them to return the messages if there have been some.
But what's the best way to do that? concat the messages of all functions in a really big string? Use an array, but I have the risk of getting multiple dimensions arrays.
How is this done usually in applications?