shorthand to assign multiple variable to same value in php

Solutions on MaxInterview for shorthand to assign multiple variable to same value in php by the best coders in the world

showing results for - "shorthand to assign multiple variable to same value in php"
Mila
04 Jan 2019
1# Initialize multiple regular variables with values
2$a = $b = $c = 'Hello PHP';
3echo $a.'<br>',$b.'<br>', $c.'<br>';
4
5Output:
6*******
7Hello PHP
8Hello PHP
9Hello PHP
10
Angela
12 Jan 2019
1$a = $b = $c = $d = array();
2