Jump to content

Jokersnl93

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Jokersnl93

  1. <!DOCTYPE html> <html> <body> <?php $array=array(1,2,3); ?> <script> for (i=0;i<3;i++) { let y= "<?php echo $array[i] ?>"; document.write(y); } </script> </body> </html> can u tell me why i doesnt print anything from array ? but if a remove loop and swrite $array[0] it prints 1, but if i write let i=0; $array; it prints nothing why ? they are same logic
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.