How To Display All The Values In An Array
- Forums
- PHP
- How To Display All The Values In An Array
Webune Is Going To Show You How To Display All The Values In An Array In Php [2050], Last Updated: Mon Jun 24, 2024
Webune Support
Fri Oct 16, 2009
0 Comments
429 Visits
hello, welcome to Webune Support Forums. - We provide excellent service and support to all our customers.
today we are going to show you how you can display all the values in an array. displaying the values [elements] within an array is easy. lets say i have this array:
fruits[0] = 'banana';
fruits[1] = 'apple';
fruits[2] = 'orange';
fruits[3] = 'grapes';
now to display and get the values for each element you can use this example code:
';
print_r($fruits);
echo '';
?>
try it, it works