<p>The query mode of the [[Clients]] allows you to bind external variables to a query
and evaluate the query in an iterative manner. The <code>query()</code> function of the
<code>Session</code> instance returns a new query instance.</p>
==Usage==
==PHP Example==
Taken from our [https://github.com/BaseXdb/basex-api/blob/master/basex-api/src/main/php/QueryBindExample.php repository]:
<pre classlang="brush:php">
<?php
/*
* Documentation: http://basex.org/api
*
* (C) BaseX Team 2005-1115, BSD License
*/
include("BaseXClient.php");
try {
// create session
$session = new Session("localhost", 1984, "admin", "admin...");
try {
;Version 7.2
* Added: Client function {{Code|context()}} [[Category:Developer]][[Category:API]]function