Answer the question
In order to leave comments, you need to log in
How to insert variable in php snippet?
How to insert a variable in php snippet, for example, $value?
Here is the snippet code:
foreach ( ${1:this} as ${2:value}) {
${3:this}
}
and here is the result:
foreach ( this as value) {
this
}
and you need:
foreach ( this as $value ) {
this
},
that is, the dollar sign is not substituted.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question