Q:- What is PHP?
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language.

Originally created by Rasmus Lerdorf in 1994, the PHP reference implementation is now produced by The PHP Group.

PHP originally stood for Personal Home Page, but it now stands for the recursive acronym PHP: Hypertext Preprocessor.

PHP code may be embedded into HTML code, or it can be used in combination with various web template systems, web content management systems and web frameworks.

Q:- How to write your first PHP Program?

Its very easy just open PHP tag and write your PHP code and close the PHP tag.

PHP tags can be used in two ways.

  • <?php //your php code blocks ?>
  • <?= //your php code blocks ?> Note - for this you have to enable short_open_tag in php.ini file
echo "Welcome, PHP Tutorial";

//Output- Welcome, PHP Tutorial