PHP Function PG_Parameter_Status
The php function pg_parameter_status provides information about the parameter settings of a PostgreSQL database connection. Currently, it reports the values for server_version, client_encoding, is_superuser, session_authorization, and DateStyle. The parameter settings are reported in the form keyword = value, where keyword is a parameter name and value is the associated value. The value is usually a string and spaces around the equal sign are optional, but single quotes and backslashes must be escaped, i.e.
Functions are the building blocks of php scripts and allow programmers to concentrate on the logic of what the code is doing, rather than how it's doing it. When a function is called it should be able to do its job with the minimum amount of information required. This is where the use of arguments comes in handy. An argument is a variable that holds a value or piece of memory space inside the function, which can then be referenced outside the function as if it were a global variable.
A variable scope is defined by whether the value of the variable can be accessed from both within and outside the function. This is often referred to as parameter scoping and it's important to consider how the parameters you use for a given function are accessed, especially if the function is responsible for creating output. For example, a function that creates output shouldn't also be working out the details of what it's going to show on the screen, as these two functions are probably quite different from each other.