Actually, no. That's not it. This is an equivalent of a pointer to a variable in C.
What I was referring to is the actual renaming the variables in run-time, i.e. change variables' key in the table of variables. So the code like this:
for ($i = 0; $i < 8; $i++)
{
..
<rename i to j>
..
}
would throw a run-time error on the second iteration, because $i will become undefined. It was completely and utterly "out there", that's why I remembered it. Also showed it to a bunch of people, all of them were equally amazed. But now I can't seem to find where I saw it and what the exact syntax was.
I don't know how you'd do that in PHP, but I'm pretty sure that you can do it fairly easily in Python and Lua, and I've never heard anyone claim that (more or less) first class environments are a feature of bad languages.
You are missing the point. PHP is a very odd and subjectively inconsistent mixture of language features, so adding a goto support is hardly a bad design decision.
What I was referring to is the actual renaming the variables in run-time, i.e. change variables' key in the table of variables. So the code like this:
would throw a run-time error on the second iteration, because $i will become undefined. It was completely and utterly "out there", that's why I remembered it. Also showed it to a bunch of people, all of them were equally amazed. But now I can't seem to find where I saw it and what the exact syntax was.