Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shorthand #assign #multiple #variable #php
ADD COMMENT
Topic
Name
3+8 =