<?php
$power= "0.1";
if(is_float($power) || is_int($power)){
// ok, good
}
else{
throw new Error("Amount of power was not int or float!", 1);
return false;
}
Fatal error: Uncaught Error: Amount of power was not int or float! in /in/GpRgJ:7
Stack trace:
#0 {main}
thrown in /in/GpRgJ on line 7
Process exited with code 255.