Source Code:
(back to article)
<?php // Declare variable and store the string $var1 = "W3docs"; $var2 = "A computer science portal"; echo "Open console and check"; echo '<script>console.log(`' . $var1 . "\n" . $var2 . '`); </script>'; ?>
Result:
Report an issue