fork download
  1. <?php
  2.  
  3. $str = "-638,-663,28 + 180,-60,50 + 838,-473,22 + 21,230,11 + 35,162,28 + 88,-33,22 + -346,632,22";
  4. $coords = explode("+", $str);
  5.  
  6. echo "<map id=\"imgmap20122911656\" name=\"imgmap20122911656\">\n";
  7. foreach($coords as $coord){
  8. echo "<area shape=\"circle\" alt=\"\" title=\"\" coords=\"".trim($coord)."\" href=\"\" target=\"\" />\n";
  9.  
  10. }
  11. echo "<!-- Created by Online Image Map Editor (http://w...content-available-to-author-only...k.hu/imagemap/index) --></map>\n";
  12.  
  13. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
stdout
<map id="imgmap20122911656" name="imgmap20122911656">
<area shape="circle" alt="" title="" coords="-638,-663,28" href="" target="" />
<area shape="circle" alt="" title="" coords="180,-60,50" href="" target="" />
<area shape="circle" alt="" title="" coords="838,-473,22" href="" target="" />
<area shape="circle" alt="" title="" coords="21,230,11" href="" target="" />
<area shape="circle" alt="" title="" coords="35,162,28" href="" target="" />
<area shape="circle" alt="" title="" coords="88,-33,22" href="" target="" />
<area shape="circle" alt="" title="" coords="-346,632,22" href="" target="" />
<!-- Created by Online Image Map Editor (http://w...content-available-to-author-only...k.hu/imagemap/index) --></map>