KO 한국어
버전: v2.3.0

has

조건에 맞는 레코드가 있는지 확인합니다.

has($table, $where)
has($table, $join, $where)
반환값
[bool] 일치하는 레코드가 하나 이상 있으면 true, 그렇지 않으면 false입니다.
$isAccount = $database->has("account", [
	"AND" => [
		"OR" => [
			"user_name" => "foo",
			"email" => "foo"
		],
		"password" => "12345"
	]
]);

if ($isAccount) {
	echo "비밀번호가 올바릅니다.";
} else {
	echo "비밀번호가 올바르지 않습니다.";
}