Useful methods for debugging
This is the code documentation for the SproutCMS project
Search documentation |
class DebugUseful methods for debugging
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2025-11-06
**/
class NewClassName extends Debug {
/**
* Converts a DB result set or similar multi-dimensional array into HTML for a table
**/
public function table (array|PDOStatement $data) {
// Method code goes here
}
/**
* Determines the type of a variable.
*
* For objects, the class name is returned. For other variable types,
* the type and possibly some extra info about its value is returned.
**/
public function type (mixed $val) {
// Method code goes here
}
/**
* Wraps a value in tags and calls print_r to show all of its data.
*
* N.B. Boolean and null values are displayed as strings instead of merely
* returning an empty .
**/
public function pre (mixed $val) {
// Method code goes here
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |
|