We can use the Zend_Dubug component for dumping back to the web browser screen the values of expressions in our code.
$a = 23; $b = 12; $sum = $a + $b; Zend_Debug::dump("a=".$a); Zend_Debug::dump("b=".$b); Zend_Debug::dump("sum=".$sum);
The following video clip shows a code sample for using the Zend_Debug component.