I'm working on a multi-dimensional array using for loop, I checked the data and all of them are showing.
My problem is I always get this error Notice : Undefined offset and it points to this line for ($x=0; $x < $result[$i][$x]; $x++) {. 
SAMPLE CODE
for ($i = 0; $i < count($result); $i++)
  {
  for ($x = 0; $x < $result[$i][$x]; $x++)
    {
    // code...
    $data = $result[$i][$x];
    echo '
              <div class="col-6">
               <div class="res-cont">
                <div class="count">' . ($x + 1) . '</div>
                <h4>' . $data['title'] . '</h4>
                <p>' . $data['meta'] . '</p>
                <span>' . $data['url'] . '</span>
               </div>
              </div>
         ';
    }
  }
 
     
    