protected function DataCollector::varToString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/DataCollector/DataCollector.php \Symfony\Component\HttpKernel\DataCollector\DataCollector::varToString()
Converts a PHP variable to a string.
Parameters
mixed $var A PHP variable:
Return value
string The string representation of the variable
1 call to DataCollector::varToString()
- RequestDataCollector::collect in vendor/
symfony/ http-kernel/ DataCollector/ RequestDataCollector.php - Collects data for the given Request and Response.
File
- vendor/
symfony/ http-kernel/ DataCollector/ DataCollector.php, line 50
Class
- DataCollector
- DataCollector.
Namespace
Symfony\Component\HttpKernel\DataCollectorCode
protected function varToString($var) {
if (null === $this->valueExporter) {
$this->valueExporter = new ValueExporter();
}
return $this->valueExporter
->exportValue($var);
}