I found the following code snippet on the internet. I've tested the code and it is valid, it returns 7 and no errors. At the end of the snippet there is a PHP expression that I can't understand.
<?php
$array = ['name' => "Manuel", "age" => 39];
$array = $array + $array;
$array = array_flip($array);
$array = array_reverse($array);
$array = array_flip($array);
$array = array_map('strlen', $array);
${"result?"} = array_sum($array);
echo ${"result?"};
I've played with the code, did some research, even discussed with a few friends offline. Maybe there is something I'm missing, but I can't figure out how does PHP interpret ${"result?"}
. I guess the thing that throws me off the most is the ?
.