I have an array with multiples values in my Laravel project:
array:1434 [▼
0 => array:53 [▼
"contact" => "ANA (dependienta)"
"mail" => "[email protected]"
"phone2" => ""
"phone3" => ""
"web" => "0"
"active" => true
"province" => "Zaragoza"
]
1 => array:53 [▼
"contact" => "JACKELINE * VIVIANA"
"mail" => "[email protected]"
"phone2" => ""
"phone3" => ""
"web" => "0"
"active" => true
"province" => "Barcelona"
]
I want transform to upper case only the province value, I want to get this result:
array:1434 [▼
0 => array:53 [▼
"contact" => "ANA (dependienta)"
"mail" => "[email protected]"
"phone2" => ""
"phone3" => ""
"web" => "0"
"active" => true
"province" => "ZARAGOZA"
]
1 => array:53 [▼
"contact" => "JACKELINE * VIVIANA"
"mail" => "[email protected]"
"phone2" => ""
"phone3" => ""
"web" => "0"
"active" => true
"province" => "BARCELONA"
]
Exists any method or way to make this with Laravel Collection or other alternatives?