I want to throw an array as an exception in php, instead of a string. Is it possible to do this if you define your own class that extends the Exception class?
For exampl
Yes, you can. You will need to extend the Exception class and create a __construct() method to do what you want.