inspect()
inspect(mixed $variable) : string
Return a debug-friendly string representation of $variable.
Parameters
mixed | $variable |
Passes values through var_export() to inspect them.
<?php
/* vim: set shiftwidth=2 expandtab softtabstop=2: */
namespace Boris;
/**
* Passes values through var_export() to inspect them.
*/
class ExportInspector implements Inspector {
public function inspect($variable) {
return sprintf(" → %s", var_export($variable, true));
}
}