fork(1) download
  1. <?php
  2.  
  3. $string_patr = null;
  4. $string_seri = "bubu";
  5.  
  6. if (is_null($string_patr)) {
  7. $vv_patr = $string_seri;
  8. }
  9. else {
  10. $vv_patr = $string_patr.','.$string_seri;
  11. }
  12.  
  13. echo '
  14. <script type="text/javascript">
  15. var vv_patr = "'.$vv_patr.'";
  16. alert(vv_patr);
  17. </script>';
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
<script type="text/javascript">
  var vv_patr = "bubu";
  alert(vv_patr);
</script>