How To Display Array Contents
Description: How To Display Array Contents
Tags: how ,to ,display ,array ,contents ,
i want to know how i can display or show the contents or the values of an array into one whole output.
for example if i have an array with 5 different values, how can i display what that array holds?
thanks
Bhargb Sat Jul 31, 2010 Plz reply me of this problem..................
Administrator Sun Feb 24, 2008 tech Sat Feb 23, 2008 if you want display from mysql query you can us this one:
$sql = "SELECT * FROM ".$db_prefix."config";
$result = mysql_query($sql ,$db);
$myrow = mysql_fetch_array($result);
print_r(array_values($myrow));
lucas Mon Feb 11, 2008 lets say you have something like this:
<?php
$array = array("size" => "XL", "color" => "gold");
echo '<pre>';
print_r(array_values($array));
echo '</pre>';
?>
you will have something like this come out:
OUTPUT:
Array
(
[0] => XL
[1] => gold
)
Information
Title: How To Display Array Contents
Info: This Post Has Been Viewed 0 Times Since
Date: Mon Feb 11, 2008
Author
mysql Received 5 Replies #1078
Related Content
Related Pages
Related Sites
Add Your Website
Share
URL:

Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
Embed:

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE::

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums