mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Cause all the .php files containing lines ending with \r\n to instead end with \n.
DYI with:
find fusionpbx -type f -name '*.php' -exec dos2unix '{}' \;
9 lines
204 B
PHP
9 lines
204 B
PHP
<?php
|
|
|
|
function object_to_array($obj) {
|
|
if (!is_object($obj) && !is_array($obj)) { return $obj; }
|
|
if (is_object($obj)) { $obj = get_object_vars($obj); }
|
|
return array_map('object_to_array', $obj);
|
|
}
|
|
|
|
?>
|