Search
 
SCRIPT & CODE EXAMPLE
 

PHP

concat two variables php

$var1 = "hello";
$var2 = "world";

$concat = $var1.' '.$var2; // $concat ='hello world' (with single quote)

$concat = "$var1 $var2"; // $concat ='hello world' ( with double quote)
Comment

concatenate string php

<?php 

// First String 
$a = 'Hello'; 

// Second String 
$b = 'World!'; 

// Concatenation Of String 
$c = $a.$b; 

// print Concatenate String 
echo " $c 
"; 
?> 
Comment

php string concatenation

<?php
 
// First String
$a = 'Hello';
 
// Second String
$b = 'World!';
 
// Concatenation Of String
$c = $a.$b;
 
// print Concatenate String
echo " $c 
";
?>
Comment

php how to concatenate strings

$data1="The colour is ";
$data2="red";

$result=$data1.$data2; // The colour is red
Comment

php string concat

$name [] = ['abhi']
Comment

php concatenate and add

this is inside for or foreach loop

# For concatenate use           .=
 $var .= 'string';

 # For adding the VALUES use    +=
 $var += 1;
Comment

PREVIOUS NEXT
Code Example
Php :: php gethostname 
Php :: php check if associative array 
Php :: laravel return validation errors 
Php :: laravel model update table 
Php :: laravel carbon get day name 
Php :: simple_form_for id 
Php :: check if file empty php 
Php :: laravel groupby and latest 
Php :: laravel where on relationsship column 
Php :: php curl add user agent 
Php :: send var in header php 
Php :: display image from mysqli database 
Php :: moodle get course image 
Php :: if url has certain code then php 
Php :: laravel blade foreach index value 
Php :: magento 2 db connection 
Php :: how to build laravel database 
Php :: woocommerce after order been placed hook 
Php :: how to include file in laravel blade 
Php :: cambiare pagina php 
Php :: check if array is empty php 
Php :: php proper function comments 
Php :: array_walk in php 
Php :: laravel find duplicate rows 
Php :: pdf watermark dengan laravel 
Php :: E: Unable to locate package php7.2-fpm 
Php :: laravel select raw where 
Php :: advantages of php 
Php :: show one value after point php 
Php :: add two numbers in php 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =