Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- Original data:
- ===============
- $result = array(
- '32' => 'Belgium',
- '31' => 'Holland,
- '44' => 'England',
- '39' => 'German',
- );
- how can i add on top of this to make it like following:
- Expected data:
- ==============
- $result = array(
- '' => '',
- '32' => 'Belgium',
- '31' => 'Holland,
- '44' => 'England',
- '39' => 'German',
- );
- Tried and getting fail to make the expected data:
- ===================================================
- **If i try array_merge it makes the keys with 0, 1, 2, 3, ... same for array_push,
- etc.., so i lose the country codes.
Add Comment
Please, Sign In to add comment