Re: [RFC] [DISCUSSION] Scalar Pseudo-type
| From: | Sebastian Bergmann | Date: | Sat, 30 Dec 2017 17:16:19 +0000 |
| Subject: | Re: [RFC] [DISCUSSION] Scalar Pseudo-type | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101457@lists.php.net to get a copy of this message | ||
Am 29.12.2017 um 16:37 schrieb Nikita Popov:
> Having an explicit number type also goes well with an explicit number cast.
> PHP internally has a notion of a number cast (which is the basis for
> arithmetic operations), but currently does not expose it. As such, number
> casts currently have to be simulated using workarounds like +$x.
PHP also already has is_numeric().