I'm using PHP to connect to a SQL Anywhere 17 database. One of two commands can be used to close the connection. sasql_disconnect or sasql_close.
At https://infocenter.sybase.com/help/index.jsp I can find very brief information that: sasql_disconnect: Closes a connection that has been opened with sasql_connect or sasql_pconnect. sasql_close: Closes a previously opened database connection.
Both functions take the same type of parameters and return true or false.
There is no information on the above page about the differences between the two functions. There is also no information that the reason for the existence of one of them was the desire to maintain compatibility with previous versions of the database.
Still, I suspect there is a reason for the existence of the two functions. Does anyone know how they differ? When to use one and when the other? Thank you. Marcin.