Re: [Discussion][RFC Idea] Cast Variables by Reference
| From: | Joseph Leedy | Date: | Mon, 07 Jul 2025 16:50:17 +0000 |
| Subject: | Re: [Discussion][RFC Idea] Cast Variables by Reference | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127942@lists.php.net to get a copy of this message | ||
On Mon, Jul 7, 2025, at 10:47, Alexandru Pătrănescu wrote:
>
> You need to use a slightly different syntax, maybe
>
(float)&$price; that is an error now.
Apologies; I missed the ampersand in my example solution.