Home >> PHP >> Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in PHP

Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in PHP

 "{$a} dollars" to print out the amount of dollars

Post Your Comment

Next Questions
How do you pass a variable by value
How do I find out the number of parameters passed into function
How To Protect Special Characters in Query String
What is the difference between GET and POST
What are the different types of errors
If conditional statement
If else conditional statement
If else / else if conditional statement
Switch conditional statement
For loop
While loop
Do while loop
Foreach loop
Operators
Arithmatic operators
Assignment operators
Increment / Decrement Operators
Comparision Operators
Logical operators
Array Operators
String
addcslashes() function
addslashes() function
chunk_split() function
crc32() function

Copyright ©2022 coderraj.com. All Rights Reserved.