note 108949 modified in internals2.opcodes.concat by danbrown

From: Date: Wed, 13 Jun 2012 15:34:49 +0000
Subject: note 108949 modified in internals2.opcodes.concat by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188589@lists.php.net to get a copy of this message
Concat . is a very useful tool in php while creating long strings or creating a set of data for example;

<?php
// GIVE THE STRING A NAME
$mystring="";

// NOW USE CONCAT . TO BUILD THE STRING

$mystring.="hello,";
$mystring.="world";

echo $mystring;
?>

output will be
hello,world --was-- Concat . is a very useful tool in php while creating long strings or creating a set of data for example; // GIVE THE STRING A NAME $mystring=""; // NOW USE CONCAT . TO BUILD THE STRING $mystring.="hello,"; $mystring.="world"; echo $mystring; // output will be hello,world http://php.net/manual/en/internals2.opcodes.concat.php

« previous php.notes (#188589) next »