<?php $person = ['John','Doe']; [$first_name, $last_name] = $person; var_dump($first_name, $last_name); Code language: PHP (php)