ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Class **Phalcon\Db\RawValue**[](# "永久链接至标题") This class allows to insert/update raw data without quoting or formating. The next example shows how to use the MySQL now() function as a field value. ~~~ <?php $subscriber = new Subscribers(); $subscriber->email = 'andres@phalconphp.com'; $subscriber->createdAt = new \Phalcon\Db\RawValue('now()'); $subscriber->save(); ~~~ ### Methods[](# "永久链接至标题") public **getValue** () Raw value without quoting or formating public **__toString** () Raw value without quoting or formating public **__construct** (*unknown* $value) Phalcon\Db\RawValue constructor | - [索引](# "总目录") - [下一页](# "Class Phalcon\Db\Reference") | - [上一页](# "Class Phalcon\Db\Profiler\Item") | - [API Indice](#) »