- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
//i used below 2 lines just for creating stdClass object, so it's not for your use
$diReturn = array('diID'=>1);
$diReturn = json_decode(json_encode($diReturn));
echo "<td width='150'> <a href='didata.php?id=". $diReturn->diID ."' class='blinking'><span> View </span> </a> </td> ";