I have seen some PHP applications use lines of code that look like this:
throw new Exception(....);
How can I do one of them? I want to make the quit command. What is called?
For example, I am writing an application and I want to make the backend easy to use, so I want to use it when the developer wants to set the environment variable:
add environment("varname","value");
But I have no idea how to make one of them.
Scott source share