Question : how to debug in php
Answered by : arrogant-ape-94gd8klhvmtj
ini_set('display_errors', 'On');
error_reporting(E_ALL);
Source : https://blog.teamtreehouse.com/how-to-debug-in-php | Last Update : Tue, 23 Jun 20
Question : how to print in php
Answered by : mutasim-almualimi
<?php echo 'hello world';
?>
Source : | Last Update : Sat, 10 Sep 22
Question : how to use php to print inside html
Answered by : ibrahim-sanna
<?php
$array = array(1, 2, 3, 4);
?>
<table>
<thead><tr><th>Number</th></tr></thead>
<tbody>
<?php foreach ($array as $num) : ?>
<tr><td><?= htmlspecialchars($num) ?></td></tr>
<?php endforeach ?>
</tbody>
</table>
Source : https://stackoverflow.com/questions/18140270/how-to-write-html-code-inside-php-i-want-write-html-code-within-the-php-sc | Last Update : Wed, 08 Jun 22
Question : how to print something in php
Answered by : iamatp-on-scratch
<?php
$text = "random text";
$number1 = 32;
echo $text;
echo $number1;
echo "Normal text should be in double quotes <br>";
echo ("You can use parenthesis as well, as an advice you shouldn't because
it takes more space, but after all, it's your choice <br>");
echo "You", "can", "use many parameters", "like shown right here", "you can
use html tags if you're using it in html as well like shown right below <br>";
echo "<h4>. $number1 .</h4>";
echo $number1 + 23.12;
?>
Source : | Last Update : Fri, 17 Jun 22