note 48523 deleted from function.sqlite-create-function by tularis
| From: | tularis@php.net | Date: | Tue, 28 Dec 2004 09:19:29 +0000 |
| Subject: | note 48523 deleted from function.sqlite-create-function by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82396@lists.php.net to get a copy of this message | ||
Note Submitter: info at myphp dot it
----
The function to register, can be a method of a class:
<?php
class sqlite_function {
function md5($value)
{
return md5($value);
}
}
$dbLink = sqlite_open('SQLiteDB');
sqlite_create_function($dbLink, 'md5', array('sqlite_function',
'md5'), 1);
// All your stuff below this comment
?>
It works fine :)
----
Reason: useless note