Write the value of the string variable to the output in PHP

Description

The following code shows how to write the value of the string variable to the output.

Example


//  w w  w . j  a  v  a2 s. c o  m
<?php
    $str = "Hello world!";
    echo $str;
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions