в some_code.php
$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?