|
|||||||||
|
|||||||||
var_export(PHP 4 >= 4.2.0, PHP 5) var_export — Outputs or returns a parsable string representation of a variable Описаниеvar_export() gets structured information about the given variable. It is similar to var_dump() with one exception: the returned representation is valid PHP code. Список параметров
Возвращаемые значенияReturns the variable representation when the return parameter is used and evaluates to TRUE. Otherwise, this function will return NULL. Список изменений
Примеры
Пример #1 var_export() Examples
<?phpРезультат выполнения данного примера:
<?phpРезультат выполнения данного примера:
Пример #2 Exporting classes since PHP 5.1.0
<?phpРезультат выполнения данного примера:
Пример #3 Using __set_state (since PHP 5.1.0)
<?phpРезультат выполнения данного примера:
Примечания
| |||||||||
|
|||||||||