S
S
Sergey Burduzha2017-05-05 11:32:45
Snippets
Sergey Burduzha, 2017-05-05 11:32:45

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

1 answer(s)
S
Sergey Burduzha, 2017-08-29
@serii81

Need to escape \

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question