fork download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5.  
  6. // ①
  7. $samural_alert = "こちらは侍エンジニアでございます。";
  8. // ②
  9. $alert = "<script type='text/javascript'>alert('". $samural_alert. "');</script>";
  10. // ③
  11. echo $alert;
  12.  
Success #stdin #stdout 0.03s 25992KB
stdin
Standard input is empty
stdout
<script type='text/javascript'>alert('こちらは侍エンジニアでございます。');</script>