Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Loop associative array through foreach loop
touhid_xml
Dec 13th, 2014
570
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
PHP Brief
0.10 KB
| None
|
0
0
raw
download
clone
embed
print
report
<?php
$city
=
[
"Dhaka"
,
"Dinajpur"
,
"Rangpur"
]
;
foreach
(
$city
as
$c
)
{
echo
"{$c}<br />
\n
"
;
}
?>
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
$13,000 in 48 Hours
CSS | 48 min ago | 0.90 KB
Hidden Cyrpto Opportunity
CSS | 49 min ago | 0.90 KB
Untitled
1 hour ago | 7.95 KB
Untitled
1 hour ago | 5.16 KB
Secrets.kdbx
1 hour ago | 97.25 KB
Untitled
3 hours ago | 14.71 KB
Untitled
3 hours ago | 0.23 KB
Untitled
5 hours ago | 4.28 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!