How to Use String Variable in PHP


This is the example which will show you how to assign a string content to the variable in PHP.

Please check the below example it is showing that the Variable “$Variable” is used to store the text statement and then it is used to show on the front page with the help of echo.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>String Variable Example in PHP</title>
$Variable = "Hello This is My Testing Message.";
echo $Variable;
//You can add any name in place of $Variable