Severity: Warning
Message: preg_match(): Compilation failed: unmatched closing parenthesis at offset 38
Filename: hooks/Check_user.php
Line Number: 222
Backtrace:
File: /home/u377916119/domains/myprojecthd.in/public_html/application/hooks/Check_user.php
Line: 222
Function: preg_match
File: /home/u377916119/domains/myprojecthd.in/public_html/application/hooks/Check_user.php
Line: 89
Function: getOS
File: /home/u377916119/domains/myprojecthd.in/public_html/application/hooks/Check_user.php
Line: 12
Function: anylisis
File: /home/u377916119/domains/myprojecthd.in/public_html/index.php
Line: 315
Function: require_once
Variables in PHP
1.What is Variables :
Variables are used to store information to be referenced in a computer program. They also provide a way of labeling data with a descriptive name, so our programs can be understood more clearly by the reader and ourselves. It is helpful to think of variables as containers that hold information
2.PHP Variable :
PHP Variable starts with $ symbol
Example 1
$name=”Hello”;
$first_name=”First name here”;
$firstName=”First name here”;
$name1=”First name here”;
Program Using PHP Variables
<?php
$message = "This is a variable page";
echo $message;
echo "<br>";
echo $message;
?>