Monthly Archives: September 2007

Incredible Zend ZDE debugging trick for debugging CLI apps

ZZ from: http://greg.chiaraquartet.net/archives/16-Incredible-Zend-ZDE-debugging-trick-for-debugging-CLI-apps.html#extended Incredible Zend ZDE debugging trick for debugging CLI apps I was having great difficulty debugging the CLI frontend of PEAR, and decided to ask the friendly folks at Zend if there is a solution that would allow … Continue reading

Posted in PHP | Leave a comment

PHP object to array

When I wrote some code for amazon web services,I found that the result of reply is make of object and array. so I create this function to convert all to entire array. function objecttoarray($object,&$restructarray){  if(is_object($object)){   foreach($object as $key=>$value){    /*    if(is_object($value) || is_array($value)){ … Continue reading

Posted in PHP | 1 Comment