How can we write a script in PHP
The full form of PHP is a Hypertext preprocessor. It was developed by Rasmus Lerdorf. It is a programming language for developing dynamic web applications and interactive websites. It is a server-side scripting language.
A PHP code can be written in 3 ways
1. Without any HTML markups
2. Embedding HTML markups in PHP code
3. Embedding PHP code in HTML.
1. Without any HTML markups:
Output:-
The addition of a and b is 20
2. Embedding HTML markups in PHP code:
";
echo " welcome
" ;
echo "