I came across a program where in the queries are formed in a different way like this:
$insert_query = "INSERT INTO projects(project_user_id, project_name, project_body) ";
$insert_query .= "VALUES({project_user_id}, '{$project_name}', '{$project_body});
I know the second line is meant to concatenate it with the first line in order to improve the readability of the query. But what bugs me is what is the use of the opening and closing curly braces? Is it just to improve the readability of the code or the other way around?