InterviewSolution
Saved Bookmarks
| 1. |
How to print array values in php? |
|
Answer» To print all the values inside an array in PHP, use the for each loop. Here’s an example to demonstrate it:$colors = array("RED", "Green", "BLUE", "Yellow", "ORANGE"); // Loop through colors array foreach($colors as $value){ ECHO $value . " Red |
|