PHP Output a String
In the following example, we will assign a string to the variable
$str and then
output it to the screen:
<?php
$str = 'text';
echo $str;
?>
Code execution result:
'text'
In the following example, we will assign a string to the variable
$str and then
output it to the screen:
<?php
$str = 'text';
echo $str;
?>
Code execution result:
'text'