Home » PHP » PHP Exception Handling » Question
  1. How many methods are available for the exception class?
    1. 8
    2. 7
    3. 6
    4. 5
    5. None of these
Correct Option: B

The seven methods are: getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString().



Your comments will be displayed only after manual approval.