Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<p></p>
<?php
define('GREETING', '<script type="text/javascript">$(document).ready(function(){$("p").text("Hello world!");});</script>');
function myTest() {
echo GREETING;
}
myTest();
?>
</body>
</html>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408