How to combine variables into an array, keeping the variable name as a key
2 answers
You can use compact to create an array from your variables, and then just add two arrays together:
$countries += compact('as', 'ad'); +9
"Afghanistan", "ax" => "Γ
..."> You can use Geek Answers HandbookHow to combine variables into an array, keeping the variable name as a key
2 answerscompact to create an array from your variables, and then just add two arrays together: $countries += compact('as', 'ad'); source share+9
All Articles