is_real()
function is_real(mixed $value): bool
Alias of is_float().
Parameters:
$value(mixed)
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/types/is_real.rs).- Strict PHP mode: hidden - this builtin is an elephc extension with no PHP equivalent, so programs compiled with
--strict-phptreat the name as nonexistent, in compiled code and inside eval’d code.
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how is_real is implemented in the compiler, see the internals page.