fork(1) download
  1. <?php
  2. $videos= array();
  3.  
  4. $v = 3;
  5. $r = 6;
  6.  
  7. $videos[$v][] = $r;
  8.  
  9. $v = 3;
  10. $r = 2;
  11.  
  12. $videos[$v][] = $r;
  13.  
  14. $v = 1;
  15. $r = 7;
  16.  
  17. $videos[$v][] = $r;
  18.  
  19. $v = 3;
  20. $r = 9;
  21.  
  22. $videos[$v][] = $r;
  23.  
  24.  
  25. print_r($videos); //Shows videos with ids($v): 1 & 3 and their descriptions($r)
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Array
(
    [3] => Array
        (
            [0] => 6
            [1] => 2
            [2] => 9
        )

    [1] => Array
        (
            [0] => 7
        )

)