is_infinite

Checks whether a float is infinite

&reftitle.description; `bool` `is_infinite` `float` `num`

Returns whether the given `num` is either `INF` or `-INF`.

&reftitle.parameters;

`num`

- The &float; to check

&reftitle.returnvalues;

&true; if `num` is either `INF` or `-INF`, else &false;.

&reftitle.examples;

### `is_infinite` example

    <?php
    $inf = 1e308 * 2;

    var_dump($inf, is_infinite($inf));

    $negative_inf = -$inf;

    var_dump($negative_inf, is_infinite($negative_inf));
    ?>

&example.outputs;

    float(INF)
    bool(true)
    float(-INF)
    bool(true)

&reftitle.seealso;

- `is_finite`
- `is_nan`