Documentation Home
MySQL PHP API
Download this Manual
PDF (US Ltr) - 2.4Mb
PDF (A4) - 2.4Mb
HTML Download (TGZ) - 250.1Kb
HTML Download (Zip) - 257.6Kb


MySQL PHP API  /  ...  /  DatabaseObject::existsInDatabase

5.16.1 DatabaseObject::existsInDatabase

Copyright 1997-2019 the PHP Documentation Group.

  • DatabaseObject::existsInDatabase

    Check if object exists in database

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.73 mysql_xdevapi\DatabaseObject::existsInDatabase example

<?php

$existInDb = $dbObj->existsInDatabase();

?>