Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

getMessage in php

<?php
try {
    throw new Exception("Some error message");
} catch(Exception $e) {
    echo $e->getMessage();
}
?>
  
 The above example will output something similar to:

Some error message
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #getMessage #php
ADD COMMENT
Topic
Name
3+5 =