Answer the question
In order to leave comments, you need to log in
Concatenate self::property?
Hello!
Is it possible and if so, how to properly concatenate self::property into curly braces of double quotes, otherwise it turns out to be an ugly snake.
Presently
$file_view = APP . '/views/' . self::$route['controller'] . '/' . self::$route['action'] . '.php';
$file_view = APP . "/views/{self::$route['controller']}/{self::$route['action']}.php";
Answer the question
In order to leave comments, you need to log in
will fail
.
is determined. Using single curly braces ({}) will not work to access the values of functions, methods, class constants, or static class variables
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question