1

in 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);

How could I print mongodb variables in php?

1 Answer 1

1

var_dump() is always your friend.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.