Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php multiple variables assign same value

$a = $b = $c = $d = array();
Comment

assigning multiple variable in php

## ASSIGNING MULTIPLE VARIABLE IN PHP
$var1 = $var2 = $var3 = $var4 = "String";
$var1 = $var2 = $var3 = $var4 = 4;
$var1 = $var2 = $var3 = $var4 = {};
$var1 = $var2 = $var3 = $var4 = [];
Comment

shorthand to assign multiple variable to same value in php

# Initialize multiple regular variables with values
$a = $b = $c = 'Hello PHP';
echo $a.'<br>',$b.'<br>', $c.'<br>';

Output:
*******
Hello PHP
Hello PHP
Hello PHP
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress remove current post in sidebar php 
Php :: wc php coupon applied message still after coupon delete 
Php :: an einem string etwas anfügen php 
Php :: mongodb uploading csv php 
Php :: how to get textbox value in php without submit 
Php :: php curl get text only 
Php :: get_user_info 
Php :: cache.backend.null 
Php :: comment php laravel template blade 
Php :: set php variabe with javascript loca storage 
Php :: how to put external file in laravel listener class 
Php :: small echo php 
Php :: the_field 
Php :: exceptions on fatals(2) 
Php :: php mysqli connect to two databases pdo 
Php :: php pop up message 
Php :: laravel eloquent where value less then 5 and greter then 0 
Php :: how to convert php code to html 
Php :: PHP strripos — Find the position of the last occurrence of a case-insensitive substring in a string 
Php :: Removing the additional information tab using PHP code snippet 
Php :: Inject interface and not concrete class 
Php :: how to search like username,email and phone number in php 
Php :: !array_push($stack, "apple", "raspberry"); 
Php :: check if date is older than today php 
Php :: how to filter the all special characters in cakephp from an array 
Php :: php make simple loop of number elevated to exponent without pow 
Php :: How to create a contract with Solidity? 
Php :: veue laravel remove #/ 
Php :: recuperar dados de um objeto em outra página herança php 
Php :: array_key_first not works 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =