/
home
/
ubuntu
/
html
/
cravings
/
vendor
/
mongodb
/
mongodb
/
docs
/
reference
/
method
/
Upload File
HOME
======================================= MongoDB\\Model\\DatabaseInfo::isEmpty() ======================================= .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\Model\\DatabaseInfo::isEmpty() Return whether the database has any data. .. code-block:: php function isEmpty(): boolean Return Values ------------- A boolean indicating whether the database has any data. Examples -------- .. code-block:: php <?php $info = new DatabaseInfo(['empty' => true]); var_dump($info->isEmpty()); The output would then resemble:: bool(true) See Also -------- - :manual:`listDatabases </reference/command/listDatabases>` command reference in the MongoDB manual