fork download
  1. <?php
  2.  
  3. $str = "it, is, a, test";
  4.  
  5. $res = explode( ', ', $str );
  6.  
  7. echo "<small>";
  8. foreach($res as $result){
  9. echo "<a href='#'>" . $result . "</a>";
  10.  
  11. }
  12.  
  13. // your code goes here
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
<small><a href='#'>it</a><a href='#'>is</a><a href='#'>a</a><a href='#'>test</a>