# Thinkphp3.2中更新一个字段值为null

**URL:** <https://www.shiqidu.com/t/topic/364>\
**Category:** 开发调优\
**Tags:** Thinkphp\
**Created:** [2018 年1 月 19 日 14:13 UTC](https://www.shiqidu.com/t/topic/364 "2018-01-19T14:13:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![Eureka](https://www.shiqidu.com/user_avatar/www.shiqidu.com/eureka/32/5_2.png) [@Eureka](https://www.shiqidu.com/u/Eureka)\
发布日期： [2018 年1 月 19 日 14:13 UTC](https://www.shiqidu.com/t/topic/364/1 "2018-01-19T14:13:44Z")

</div>

设置`is_read`为`null`

```php
$model-&gt;where(['id' =&gt; 1])-&gt;save(['is_read' =&gt; ['exp', 'null']]);  

```
