# Delete 删除数据 > delete($where) 中文 : 删除(条件); where [array] WHERE 删除条件. Return: [number] 返回被删除的行数. 删除一个 user = admin 并 年龄<18的数据 ~~~ $User = M("User"); $User->delete(array( "AND" => array( "user" => "admin" "age[<]" => 18 ) )); //中文语法 $User->删除(array( "AND" => array( "user" => "admin" "age[<]" => 18 ) )); ~~~ 删除 user 等于 admin的数据 ~~~ <?php namespace Action; use HY\Action; class Index extends Action { public function Index(){ //实例User表为对象 $User = M("User"); $User->delete( array( "user" => "admin", ) ); } } ~~~