fork download
  1. <?php
  2.  
  3. $array = array('a','b','c');
  4.  
  5. $json = json_encode($array);
  6.  
  7. echo $link = '<a href.. tag="'.htmlentities($json).'">';
  8.  
  9.  
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
<a href.. tag="[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]">