PHP 8.5.0 Alpha 4 available for testing

Voting

: three plus five?
(Example: nine)

The Note You're Voting On

marcin dot dzdza at gmail dot com
6 years ago
The feature of variable variable names is welcome, but it should be avoided when possible. Modern IDE software fails to interpret such variables correctly, regular find/replace also fails. It's a kind of magic :) This may really make it hard to refactor code. Imagine you want to rename variable $username to $userName and try to find all occurrences of $username in code by checking "$userName". You may easily omit:
$a = 'username';
echo $$a;

<< Back to user notes page

To Top