Version: v2.6.0
has
Check whether any matching record exists in a table.
has($table, $where)
has($table, $join, $where)
Return Value
[bool]
true if at least one matching record exists, false otherwise.$isAccount = $database->has("account", [
"AND" => [
"OR" => [
"user_name" => "foo",
"email" => "foo"
],
"password" => "12345"
]
]);
if ($isAccount) {
echo "The password is correct.";
} else {
echo "Invalid password.";
}