PHP is a general-purpose scripting language geared towards web development.

First we need to open Notepad++ and choose language

The second thing that we do i saving and launching it in XAMPP

We need to save our file in xampp/htdocs/(our folder name)

Also we must add .php at the end of file

After what we open XAMPP, launch Apache and Mysql and click admin on Apache

We mut find our file by this way http://localhost/(your folder name)
Example:http://localhost/aleksander/tund1.php

<!DOCTYPE html>
<html>
	<head>
		<title>PHP tervitus</title>
	</head>
	<body>
	<h1>PHP tervitus</h1>
	<!--php koodi osa-->
	<?php
	
	echo "Tere hommikust!";
	$tekst = "TARpv22";
	echo"<br>";
	echo $tekst;
	
	//matemaatika tehed
	
	$arv1=5;
	$arv2=5;
	
	echo"<br>";
	echo "Liitmine: ".($arv1+$arv2);
	
	echo"<br>";
	echo "Lahutamine: ".($arv1-$arv2);
	
	echo"<br>";
	echo "Korrutamine: ".($arv1*$arv2);
	
	echo"<br>";
	echo "Jagamine: ".($arv1/$arv2);
	
	echo"<br>";
	echo "Ruudus: ".pow($arv1, 2);
	echo"<br>";
	
	?>
	</body>
</html>