TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 04-10-2009, 11:50 AM   #1 (permalink)
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default arrays......

Is there an easy way to print the items of an array without using print_r or var_dump and without using any loops?
I don't want to show key to value relationship like var_dump and print_r shows.... just the items in the array. And no loops...

For example:

$array = array(1,2,3,4,5);

Let's say there's a function called: print_array

Then I would do this:

print_array($array);

And it would spit out: 1 2 3 4 5

I checked out PHP.net but didn't see anything under the print_r function...maybe one of you guys know of some other function?
allworknoplay is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
lol, i made a never ending loop with arrays sarmenhb Tips & Tricks 28 10-22-2012 09:36 AM
config file arrays oop memcache MJ_ General 2 01-24-2009 06:53 PM
2-d arrays -- issues of printing and deleting Dave Absolute Beginners 3 06-05-2008 11:45 AM
Arrays + Pages blayne4k Script Giveaway 0 04-20-2008 10:35 PM
Problem with Arrays CoryMathews Absolute Beginners 6 02-27-2008 02:04 PM


All times are GMT. The time now is 08:22 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design