Update array based on other aray in php
I have two array's
Array $groeperingen contains the short codes and the full names. Array
$groep cointains only shortcodes
What i want is that all short codes in $groep are replaced with the full name
array $groepering looks like this:
Array
(
[019] => Regio 019a
[013] => Regio 013
[011] => Regio alpha
[AR] => ArmUsers
[CU] => ComputerUsers
[GA] => Gamers
[OP] => Opensource
)
And $groep looks like this
Array
(
[0] => CU
[1] => GA
[2] => OP
)
How can i do this?
No comments:
Post a Comment