Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
[ Posted by Hengky ] test doang cuy
<!-- *** PhpFiddle Lite *** -->
include_once ("");
$urldata = preg_replace("/ /", "+","");
$html = file_get_html($urldata);
// this has to be in JSON format
echo json_decode($html);
$dataArray = $dataArray["result"]["stok"];
echo "<table>
foreach($dataArray as $item){
echo "<td>".$item["ukuran"]."</td>";
echo "<tr>
foreach($dataArray as $item)
echo" <td>". $item["stok"] ."</td>";
echo "</tr></table>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment