<?php
$document 
= [
  
"_id" => "derickr",
  
"name" => "Derick Rethans",
  
"talks" => [
    [
      
"title" => "Profiling PHP Applications",
      
"url" => "http://derickrethans.nl/talks/profiling-phptour.pdf",
    ],
    [
      
"title" => "Xdebug",
      
"url" => "http://derickrethans.nl/talks/xdebug-phpbcn11.pdf",
    ]
  ]
];

$m = new MongoClient();
var_dump$m->demo->talks->insert$document ) );
?>