how to debug in php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
how to debug in php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
Difference between echo and print statement in php
Source link:
https://www.programmingquest.com/2019/04/difference-between-echo-and-print.html
1. echo Statement
* we can write echo statement with parenthesis like 'echo()' or without parenthesis 'echo'.
* In the echo we can pass multiple variable in comma separated form to see the output like 'echo $a,$b,$c;'
* echo doesn’t return any value
* echo is faster then print
2. Print Statement
* we can write print statement with parenthesis like 'print()' or without parenthesis 'print'.
* In the print we can not pass multiple variable in comma separated form like echo.
* print statement always returns 1.
* print is slower than echo
how to make a print text in php
<html>
<body>
<?php
$txt1 = "test";
$txt2 = "test";
$x = num;
$y = num;
print "<h2>" . $txt1 . "</h2>";
print "test " . $txt2 . "<br>";
print $x + $y;
?>
</body>
</html>
php print
print "<p>Módulo: ${modulo}</p>"
php print
printf("El número PI vale %+.2f", 3.1416); // +3.14
php print
$txt_pi = sprintf("El número PI vale %+.2f", 3.1416);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us