![]() |
get_object_vars |
|
| |
||
| array get_object_vars(object obj) |
|
|
|
PHP 4 >= 4.0RC1 |
|
|
|
Mit get_object_vars() kann man sich alle Mitgliedsvariablen (Eigenschaften) Siehe auch: |
|
|
<?PHP function first(){
}
}
$connect_to_base = new database;
$array = get_object_vars($connect_to_base);
while (list($key, $val) = each($array)) {
echo "$key => $val";
echo "<br>";
}
?>
|
|
|
|
db_server => localhost |
|
| |
| weiter: |
|
| zurück: |
|