PHP Velho Oeste 2024

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 1 note

up
-53
shadiadiph at yahoo dot com
11 years 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
To Top