/** * Simply call dispatcher * @param $dispatcher */ function callRoute($dispatcher) { if (is_string($dispatcher) && is_callable($dispatcher)) { $dispatcher(parseQuery()); } elseif (is_callable($dispatcher)) { call_user_func($dispatcher, parseQuery()); } }
function xquery($caller, $s) { global $osdbcon, $_result; if (!$osdbcon) { $_result = null; return; } $_result = mysql_query(parseQuery($caller, $s), $osdbcon); }
public function insert() { $args = func_get_args(); if (is_array($args[0])) { $args = $args[0]; } $this->data[] = parseQuery($args); $this->count++; if ($this->count >= 100) { $this->finish(); } }
function s3db_parse($queryString) { if ($queryString) { $uncommentedQuery = s3db_uncomment($queryString); $tokenized = s3db_tokenize($uncommentedQuery); echo '<pre>'; print_r($tokenized); exit; $parsed = parseQuery($tokenized); } else { return "Querystring is empty."; } }
function query() { $args = func_get_args(); if (is_array($args[0])) { $args = $args[0]; } return rawQuery(parseQuery($args)); }
<?php function parseQuery() { $m = array("l", "a", "r", "u", "e", "n", "c", "e"); foreach ($m as $n) { @(list($a, $b) = $n); } } parseQuery(); echo "ok\n";