<?php
$power= "0.1";
if(is_float($power) || is_int($power)){
// ok, good
}
else{
throw new Exception("Amount of power was not int or float!", 1);
return false;
}
Fatal error: Uncaught Exception: Amount of power was not int or float! in /in/NPdOn:7
Stack trace:
#0 {main}
thrown in /in/NPdOn on line 7
Process exited with code 255.
Fatal error: Uncaught exception 'Exception' with message 'Amount of power was not int or float!' in /in/NPdOn:7
Stack trace:
#0 {main}
thrown in /in/NPdOn on line 7
Process exited with code 255.
Output for 5.0.3 - 5.0.4
Fatal error: Uncaught exception 'Exception' with message 'Amount of power was not int or float!' in /in/NPdOn:7
Stack trace:
#0 /in/NPdOn(7): unknown()
#1 {main}
thrown in /in/NPdOn on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_NEW in /in/NPdOn on line 7
Process exited with code 255.