has 是否存在
优质
小牛编辑
126浏览
2023-12-01
has
确定数据是否存在
has($table, $where)table [string]
表名.
where [array]
WHERE 条件.
table [string]
表名.
join [array]
多表查询.
where [array]
WHERE条件.
if ($database->has("account", [ "AND" => [ "OR" => [ "user_name" => "foo", "email" => "foo" ], "password" => "12345" ]])){ echo "Password is correct.";}else{ echo "Password error.";}