title: How to get data froma json in php (multidimensional array)
body: <p>This is the data I work with:</p>
  
  <pre><code>{
      "jornadas": [
          {
              "partits": [
                  {
                      "local": 1,
                      "visitante": 2
                  },
                  {
                      "local": 3,
                      "visitante": 4
                  },
                  {
                      "local": 5,
                      "visitante": 6
                  }
              ]
          },
          {
              "partits": [
                  {
                      "local": 1,
                      "visitante": 2
                  },
                  {
                      "local": 3,
                      "visitante": 4
                  },
                  {
                      "local": 5,
                      "visitante": 6
                  }
              ]
          },
          {
              "partits": [
                  {
                      "local": 1,
                      "visitante": 2
                  },
                  {
                      "local": 3,
                      "visitante": 4
                  },
                  {
                      "local": 5,
                      "visitante": 6
                  }
              ]
          },
          {
              "partits": [
                  {
                      "local": 1,
                      "visitante": 2
                  },
                  {
                      "local": 3,
                      "visitante": 4
                  },
                  {
                      "local": 5,
                      "visitante": 6
                  }
              ]
          },
          {
              "partits": [
                  {
                      "local": 1,
                      "visitante": 2
                  },
                  {
                      "local": 3,
                      "visitante": 4
                  },
                  {
                      "local": 5,
                      "visitante": 6
                  }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>And when it goes to php, I decode it and the print_f result is:</p>
  
  <p>stdClass Object ( [jornadas] => Array ( [0] => stdClass Object ( [partits] => Array ( [0] => stdClass Object ( [local] => 2 [visitante] => 7 ) [1] => stdClass Object ( [local] => 3 [visitante] => 5 ) [2] => stdClass Object ( [local] => 4 [visitante] => 1 ) ) ) [1] => stdClass Object ( [partits] => Array ( [0] => stdClass Object ( [local] => 1 [visitante] => 7 ) [1] => stdClass Object ( [local] => 5 [visitante] => 4 ) [2] => stdClass Object ( [local] => 2 [visitante] => 3 ) ) ) [2] => stdClass Object ( [partits] => Array ( [0] => stdClass Object ( [local] => 3 [visitante] => 7 ) [1] => stdClass Object ( [local] => 4 [visitante] => 2 ) [2] => stdClass Object ( [local] => 1 [visitante] => 5 ) ) ) [3] => stdClass Object ( [partits] => Array ( [0] => stdClass Object ( [local] => 5 [visitante] => 7 ) [1] => stdClass Object ( [local] => 2 [visitante] => 1 ) [2] => stdClass Object ( [local] => 3 [visitante] => 4 ) ) ) [4] => stdClass Object ( [partits] => Array ( [0] => stdClass Object ( [local] => 4 [visitante] => 7 ) [1] => stdClass Object ( [local] => 1 [visitante] => 3 ) [2] => stdClass Object ( [local] => 5 [visitante] => 2 ) ) ) ) )</p>
  
  <p>Well I'm overwhelmed, because I cannot retreive any data from this json. If you give me any advise, I'll be very grateful </p>