I am calling github api
to list all the issues I have in my repo.
I want to list these issues in table form on my site...
However I cannot get the table going with my foreach loop.
Here is my PHP code:
<?php
ini_set('user_agent', 'PHP');
$json = file_get_contents("https://api.github.com/repos/stroes/stroestest/issues");
$data = json_decode($json);
foreach ($data as $i) {
// echo $i->number.";".$i->state.";".$i->title.";".$i->body."
";
echo "<tr><td>".$i->number."</td><td>".$i->state."</td><td>".$i->title."</td><td>".$i->body."</td></tr>";
}
?>