Can anyone teach me how to print "Hello World" 100 times without using the loop such as do, for, while, and foreach.
Thanks...
decade
2
Junior Poster in Training
Recommended Answers
Jump to PostHow about something simple like:
echo str_repeat('Hello World ', 100);
R.
All 8 Replies
TrustyTony
888
pyMod
Team Colleague
Featured Poster
decade
2
Junior Poster in Training
urtrivedi
276
Nearly a Posting Virtuoso
Biiim
182
Junior Poster
diafol
blocblue
238
Posting Pro in Training
Featured Poster
diafol
commented:
Simple but effective. Nice.
+14
TrustyTony
commented:
Indeed, like Python print 100*'Hello World ', only I do not know PHP deeply enough to suggest.
+12
veedeoo
474
Junior Poster
Featured Poster
blocblue
238
Posting Pro in Training
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.