---
title: "Discussion on \"PHP foreach() loop for indexed and associative arrays\" | Hashnode"
description: "Discussion on \"PHP foreach() loop for indexed and associative arrays\". In this tutorial, we look at the PHP foreach() loop. We also look at how to use it while working with an indexed or associative array.\nThis tutorial is a part of our initiative at Flexiple, to write short curated tutorials around often used or intere..."
url: "https://hashnode.com/posts/php-foreach-loop-for-indexed-and-associative-arrays/6149cc96699fe76cd34864a8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PHP foreach() loop for indexed and associative arrays](https://shorttechtutorials.hashnode.dev/php-foreach-loop-for-indexed-and-associative-arrays?utm_source=hashnode&utm_medium=feed)

In this tutorial, we look at the PHP foreach() loop. We also look at how to use it while working with an indexed or associative array. This tutorial is a part of our initiative at Flexiple, to write short curated tutorials around often used or intere...

Sep 21, 2021 · 2 min read · shorttechtutorials.hashnode.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Short Tech Tutorials](https://hashnode.com/@shorttutorials)

@shorttutorials

  
[View profile](https://hashnode.com/@shorttutorials)

An initiative at Flexiple, to write short curated tutorials around often used or interesting concepts.

## Responses 2

Markdown supported · ⌘↵ to post

[arif rabbani](https://hashnode.com/@mikey228)

[May 25, 2022](https://hashnode.com/posts/php-foreach-loop-for-indexed-and-associative-arrays/6149cc96699fe76cd34864a8/comment/628def0f19bda58ac7fb061d)

Try for [mentalitch.com/are-dissertation-writing-services-…](https://mentalitch.com/are-dissertation-writing-services-good/) as that was the site that will help you with the data that you are looking forward to now. We can hope that this was what there are many in need will like that as well, so keep working on this as that was useful for us.

[willaimm](https://hashnode.com/@willaimm)

[May 20, 2022](https://hashnode.com/posts/php-foreach-loop-for-indexed-and-associative-arrays/6149cc96699fe76cd34864a8/comment/6287445d8b33cc3f1f48bb9d)

good post like it
