2. Using print() function
But it is considered to use echo function rather than print because run time of print function is slightly more than that of echo function .
I hope this helps.
Happy coding :)
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
2. Using print() function
<!DOCTYPE HTML><html><head> <?php $my_string = 'Code to display text'; print $my_string;?> </head></html>But it is considered to use echo function rather than print because run time of print function is slightly more than that of echo function .
I hope this helps.
Happy coding :)
<head>
<title>Typing using PHP </title>
<body>
<?php
echo "How are you my friend?";
?>
</body>
</html>
HOPE THIS HELPS :)