Created
April 6, 2020 23:39
-
-
Save shameemreza/2decb39d24a8e45470b0db8c5488959a to your computer and use it in GitHub Desktop.
arr::divide()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We import the support for this Helper | |
use Illuminate\Support\Arr; | |
// We use the method Arr::divide() | |
[$keys, $values] = Arr::divide(['name' => 'Shameem Reza', 'price' => '3.40']); | |
// We obtain the keys and values separately | |
$keys: ['name', 'price'] | |
$values: ['Shameem Reza', '3.40'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment