Using Brackets in PHP?

Karl

New member
I'm currently half way threw a PHP book, and I'm at a chapter we're I'm using Sessions and the only thing that wasn't mentioned was brackets when calling a query. I'm just wondering why people use brackets e.g:

$first = "CONVERT_TZ(p.posted_on, 'UTC',
'{$_SESSION['user_tz']}')";

The part that I don't understand (regarding the brackets) is: '{$_SESSION['user_tz']}

I don't understand why he puts brackets round the session?

And also, why do people sometimes use @ in front of functions, such as: @mysqli_connect

Thanks.
 
Back
Top