$userDoc = $collection->findOne(array('userID' => $id)); //$userMas = $userDoc['userMas']; $userMas10 = ? Suppose we have an array of 1 million elements, so as not to clog resources, we need to take not the entire array from the database, but the array of the first 10 elements so that 1 million is not pulled out of the database.
findOne, how can you get an array of 1 million elements? - Egor Smolyakov Nov.