(PECL CUBRID >= 8.3.0)
cubrid_schema — Is used to get the requested schema information
The cubrid_schema() function is used to get the requested schema information from database. You have to designate class_name, if you want to get information on certain class, attr_name, if you want to get information on certain attribute (can be used only with CUBRID_ SCH_ATTR_PRIVILEGE).
Connection identifier.
Schema data that you want to know.
Class you want to know the schema of.
Attribute you want to know the schema of.
Array containing the schema information, when process is successful;
-1, when process is unsuccessful
Example #1 cubrid_schema() example
<?php
$attrs = cubrid_schema ($con, CUBRID_SCH_ATTRIBUTE, "person");
while (list($key, $value) = each($attrs)) {
echo $value["NAME"];
echo $value["DOMAIN"];
}
?>