Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?
Answer Posted / Vipin Kumar
You should use `print {$a} dollars` to print out the amount of dollars, as the curly braces ( {}) allow PHP to interpret $a as a variable.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers