note 92140 deleted from debugger by danbrown
| From: | danbrown@php.net | Date: | Fri, 10 Jul 2009 13:39:20 +0000 |
| Subject: | note 92140 deleted from debugger by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158165@lists.php.net to get a copy of this message | ||
Note Submitter: mss at univates dot br
----
Hi!
My name is MaurÃcio,I work in moodle project(GPL) in a university in Brazil.
in moodle is a great feature!, the function 'print_object'.
/**
* Dump a given object's information in a PRE block.
* @param mixed $object The data to be printed
*/
function print_object($object) {
echo '<pre>' . htmlspecialchars(print_r($object,true)) .
'</pre>';
}
Exemple:
<php
....
print_object($assignment);
....
?>
result:
assignment_upload Object
(
[cm] => stdClass Object
(
[id] => 262
[course] => 18
[module] => 24
[instance] => 30
[section] => 170
[idnumber] =>
[added] => 1247167569
[score] => 0
[indent] => 0
[visible] => 1
[visibleold] => 1
[groupmode] => 1
[groupingid] => 0
[groupmembersonly] => 0
[name] => sdasdsadas
[modname] => assignment
)
....
....