2011-08-03 21 views
1

在some_code.php的MongoDB在笨,調試問題


$query = new MongoCode(' 
    function (index, value){ 
     .... 
     // I need to check some value of some_variable in here 
     // etc) some_variable = 1 or "abc" 
     .... 
    } 
'); 
$run = $this->db->command($query); 

我怎麼能打印MongoDB的變量是在PHP?

回答

0

var_dump()永遠是你的朋友。