Assume $db is a made mongoDB connection with php.
There is no collection exists yet.
I inserted one data
$db->board_name->board->article->insert(array("title"=>"example"));
this is equivalent to
db.board_name.board.article.insert({"title":"example"})
the problem is it inserts not the
db.board_name.board
structure but
just simply inserts "db.board_name.board.article" <--- these three as a string.
Does it just demonstrates like a combined string for now
because there is no other elements after "board_name"?
What if I add more things right after "board_name" like
db.board_name.rank.insert({"something":"thing"});
Does mongoDB smartly recognize "rank" collection as part of "board_name" in that case?
or simply creates other collection with "db.board_name.rank"?