assigning same value to multiple variables in php code example
Example 1: php define multiple variables as 0
$var_a = $var_b = $same_var = $var_d = $some_var = 'A';
Example 2: assign multiple variables php
[$var1, $var2, $var3, $var4, $var5] = array(1, 2, 3, 4, 5);