i'm trying create live template in phpstorm i'm having trouble dynamically creating variables. i'm trying this:
$$variable_name$ = function($end$) { }; $this->foo(array('$variable_name$' => $$variable_name$)); let's type in 'bar' $variable_name$, want following result:
$bar = function() { }; $this->foo(array('bar' => $bar)); basically need way escape $variable_name$ creates php variable value enter it. know how this?
sure, use $$ actual dollar sign.
this means have replace $$variable_name$ $$$variable_name$
Comments
Post a Comment