on-internet
← Community

How does {} affect a string in PHP? [duplicate]

Stack Overflow ·

What is the difference between the following 2 queries? mysql_query("UPDATE table SET name = '$name'"); mysql_query("UPDATE table SET name = '{$name}'");

Comments

Sign in or sign up to comment and upvote.

No comments yet.