PT Português
Versão: v2.3.0

has

Verificar se existe algum registro correspondente em uma tabela.

has($table, $where)
has($table, $join, $where)
Valor de retorno
[bool] true se existir pelo menos um registro correspondente, false caso contrário.
$isAccount = $database->has("account", [
	"AND" => [
		"OR" => [
			"user_name" => "foo",
			"email" => "foo"
		],
		"password" => "12345"
	]
]);

if ($isAccount) {
	echo "A senha está correta.";
} else {
	echo "Senha inválida.";
}