if ($conn->connect_error)

I've been advised to use the above but does anyone know if "connect_error" is actual php syntax or a variable name?