MySQL and PHP

5.17.1 DatabaseObject::existsInDatabase

Copyright 1997-2019 the PHP Documentation Group.

Description

abstract public bool mysql_xdevapi\DatabaseObject::existsInDatabase();

Verifies if the database object refers to an object that exists in the database.

Parameters

This function has no parameters.

Return Values

Returns TRUE if object exists in the database, else FALSE if it does not.

Examples

Example 5.74 mysql_xdevapi\DatabaseObject::existsInDatabase example


<?php

$existInDb = $dbObj->existsInDatabase();

?>