Why doesn't this variable echo correctly (for loop)?
Anyone have a clue? I am trying to loop and make a list out of an object that produces an array for this website I am working on.

    echo "<ul>";
		for ($i = 0; $i <= 10; $i++) {
			echo $data->sets[$i]->url; // Works
    		echo "<li><a href=\"{$data->sets[$i]->url}\">{$data->sets[$i]->name}</a>";
				echo "<ul><li>{$date->sets[$i]->description}</li></ul></li>"; // Fails
			
		}
		echo "</ul>";
Why doesn't this variable echo correctly (for loop)?
===

Anyone have a clue? I am trying to loop and make a list out of an object that produces an array for this website I am working on.

    echo "<ul>";
		for ($i = 0; $i <= 10; $i++) {
			echo $data->sets[$i]->url; // Works
    		echo "<li><a href=\"{$data->sets[$i]->url}\">{$data->sets[$i]->name}</a>";
				echo "<ul><li>{$date->sets[$i]->description}</li></ul></li>"; // Fails
			
		}
		echo "</ul>";