Do you know would I use print "$a dollars” or "{$a} dollars” to print out the amount of dollars in this example?
Answer / Rahul Sagar
To print out the amount of dollars using a variable $a, you should use the second option: "{$a} dollars". The curly braces tell PHP to interpret $a as a variable.
| Is This Answer Correct ? | 0 Yes | 0 No |
How does debugging in wordpress work?
What are default themes in wordpress?
What is the limitation to the depth of your categories?
Are custom post types or custom database tables for plugin development?
What is wordpress and how does it work?
Is wordpress a cms?
How to create plugin for the wordpress?
What are wordpress filters?
How do I see all my blog posts on wordpress?
Is godaddy better than wordpress?
How do you start a blog for free?
How can you disable wordpress comment?