Problem with PHP loop #179987
-
BodyI’m using foreach to print an array, but it only prints part of it. How can I make it print the whole array? Guidelines
|
Beta Was this translation helpful? Give feedback.
Answered by
herrksissoumarouane-glitch
Nov 19, 2025
Replies: 2 comments
-
|
$array = [/* some values */]; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
marouane1gite
-
|
foreach ($array as $item) { |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$array = [/* some values */];
foreach ($array as $item) {
echo $item;
}