Assign multiple variables
Assign multiple variables:

$a = $b = $c = 10;
echo "a = $a, b = $b, c = $c";

$person = ['Nika Kobaidze', 34];

[$name, $age] = $person;

echo "My name is: $name I'm $age years old";
by Nika Kobaidze
2 years ago
PHP
PHP official doc
0
Pro tip: use ```triple backticks around text``` to write in code fences