PHP: Hypertext Preprocessor (original) (raw)

DatabaseObject::existsInDatabase

(No version information available, might only be in Git)

DatabaseObject::existsInDatabase — Check if object exists in database

Description

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

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

Parameters

This function has no parameters.

Return Values

Returns [true](reserved.constants.php#constant.true) if object exists in the database, else [false](reserved.constants.php#constant.false) if it does not.

Examples

Example #1 mysql_xdevapi\DatabaseObject::existsInDatabase() example

`<?php

$existInDb

= $dbObj->existsInDatabase();?>`