# Difference between the and$operator in php PHPServer Side ProgrammingProgramming #### PHP Online Training 45 Lectures 9 hours #### PHP in Telugu 43 Lectures 5.5 hours #### Redis and PHP 22 Lectures 40 mins ##$ operator

Operator is used to define variables in php. For example, message. Such variables can contain any type of value like int, string, etc.

## Example

Following the example, shows the usage of '′vs′$' operators. Live Demo <!DOCTYPE html> <html> <head> <title>PHP Example</title> </head> <body> <?php$welcome = "message";
$message = "Welcome to Tutorialspoint"; echo$welcome;
print("<br/>");
echo welcome;
?>
</body>
</html>

## Output

message
Welcome to Tutorialspoint
Updated on 13-Jan-2020 06:43:02