Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能给我提供示例代码以在 php 和 MongoDB 中实现具有祖先数组的模型树结构。我的问题是如何在不同级别创建具有相同名称的节点示例:Level11/Level21/Level31 Level12/Level22/Level12/Level12
由于这个 id (Level12) 已经创建,但我需要在不同的级别添加它。请帮助我使用 php 中的示例代码。