u30->quotes_mongo; //==========Using concatenation in the output $result = $collection->find( [ 'author'=>'Winston Churchill' ] ); foreach ($result as $entry) { echo $entry['_id'], ': ', $entry['text'], "\n"; } echo "\n"; //===== $result = $collection->find ( [ 'author'=>'Winston Churchill', 'adjective'=>'profound' ] ); foreach ($result as $entry) { echo $entry['_id'], ': ', $entry['text'], "\n"; } echo "====================\n"; //==========Using interpolation in the output $result = $collection->find( [ 'author'=>'Winston Churchill' ] ); foreach ($result as $entry) { echo "$entry[_id]: $entry[text]\n"; } echo "\n"; //===== $result = $collection->find ( [ 'author'=>'Winston Churchill', 'adjective'=>'profound' ] ); foreach ($result as $entry) { echo "$entry[_id]: $entry[text]\n"; } ?>