Pretty simple; I read the docs, but maybe I'm just a little confused by the explanation.
class Test{
public static $var = 'world';
}
echo "hello {Test::$var}";
Is there any way to get the desired functionality here? I'm starting to guess, no, because I tried several permutations without success.
Explanation: I am trying to achieve this by parsing PHP variables, not concatenation. Obviously, I will resort to concatenation if the desired method is not possible, although I hope so.
source
share