note 45721 added to function.ocibindbyname
| From: | php-general at lists dot php dot net | Date: | Thu, 16 Sep 2004 10:18:36 +0000 |
| Subject: | note 45721 added to function.ocibindbyname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76814@lists.php.net to get a copy of this message | ||
Hi all,
I wrote a little function to get all the bind variables of a statement. I use this for a tool that
creates a formular to execute different statements the user can select:
function getBindVars($statement){
$regExp = "/[^'](:[_a-z0-9]+)/i";
$test = preg_match_all($regExp, $statement, $return);
if (isset($return[1]) && count($return[1]) > 0)
return($return[1]);
else return array();
}
----
Manual Page -- http://www.php.net/manual/en/function.ocibindbyname.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45721
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45721&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45721&report=yes
Search -- http://master.php.net/manage/user-notes.php