Scriptcraft – Writing text in PHP

[SHID] Belgrade
Joined 23/07/2020
Posts 11,931
05:02 AM 20/09/2020
PROGRAMMING LANGUAGES:
- PHP




<?php
echo "This was written in PHP!";
?>


As you can see, if you copy the code. It shows a message in PHP style.

You can write a sentence too.


<?php
echo "This was written in PHP! ";

echo "Wow. Isn't that cool?";
?>


You can start a new paragraph like this:


<?php
echo "This was written in PHP! ";

echo "<br>Wow. Isn't that cool?";
?>


You can also write a word like...


<?php
$str="Another way of writing text huh?"
echo $str;
?>


You can also write a sentence like..


<?php
$str1="Hello world!";
$str2="What a nice day!";
echo $str1 . " " . $str2;
?>


You can write paragraphs also like..


<?php
$str = "Hello world!";
echo $str;
echo "<br>What a nice day!";
?>


I hope this helped you gain PHP knowledge.


Thiqq
Joined 15/06/2020
Posts 143,653
05:04 AM 20/09/2020
[ Content Removed ]


[SHID] Belgrade
Joined 23/07/2020
Posts 11,931
05:04 AM 20/09/2020
sigh. maybe the code font won't work...
here's a proper tutorial
https://www.w3schools.com/php/func_string_echo.asp


[Termd] [Deleted320278]
Joined 13/06/2020
Posts 7,288
05:04 AM 20/09/2020
just use italic or something
code text is fucked


[P00R] L.O_L
Joined 26/06/2020
Posts 462
05:07 AM 20/09/2020
ooooohhh...


[BC] 10allday
Joined 25/08/2018
Posts 482
08:10 PM 02/10/2020
<?php
$str = "Hello world!";
echo $str;
echo "<br>Very cool! It's code...";
?>

1