Seo Forum

Coding & Programming => Programming Forum => Topic started by: chinmay.sahoo on 01-09-2017, 08:01:05

Title: Interpolation with curly braces
Post by: chinmay.sahoo on 01-09-2017, 08:01:05
In most situations, you can simply include a variable in a doubly quoted string, and the variable's value will be spliced into the string when it is interpreted. There are two situations where the string parser might very reasonably get confused and need more guidance from you. The first situation is when your notion of where the variable name should stop is not the same as the parser's, and the other occurs when the expression you want to have interpolated is not a simple variable. In these cases, you can clear things up by enclosing the valueyou want interpolated in curly braces: {}.