Use the concatenation operator in PHP

Description

The following code shows how to use the concatenation operator.

Example


//w  w  w .  j  av a  2 s  .co m
<?php
  $Query = "SELECT LastName, FirstName " .
    "FROM Clients " .
    "WHERE Disposition = 'Pleasant' " .
    "ORDER BY LastName ";
  print($Query);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Language Basic »




PHP Introduction
PHP Operators
PHP Statements
Variable
PHP Function Create
Exception
PHP Class Definition