write a php program which reads a list of pairs of a word and a page number, and prints the word and a list of the corresponding page numbers in PHP
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
PHP
🤖 Code Explanation
This code loops through each key in the $input array, and then loops through each value in the arrays associated with each key. It then prints out the key, followed by a comma separated list of the values.
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
More problems solved in PHP
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)