dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

CONT> <CLONE
[edit] Last updated: Fri, 28 Jun 2013

view this page in

CONCAT

PHP code

<?php
/*
 * Concats string values string1 and string2
 * opcode number: 8
 */
echo "hello" "world";
?>

PHP opcodes

Function name: (null)

Compiled variables: none

line#op fetchextreturn operands
60 CONCAT   ~0 'hello','world'
 1 ECHO     ~0
72 RETURN     1


add a note add a note User Contributed Notes CONCAT - [1 notes]
up
0
shadiadiph at yahoo dot com
1 year ago
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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites