javascript
Brief description  about Online courses   join in Online courses
View Ankit  Goel 's Profile

Array Using Loop

Hello!

I would like to know how can we print an array in php with the help of loops. If we have large data and we want to store that data using array then the manual procedure takes much time and may also increase the complexity of code. So, please let me know about that...
Thanks
Asked by Ankit Goel | Apr 12, 2011 |  Reply now
Replies (2)
View ankit goel 's Profile
Thank you sir. This code is working fine. But I am not able to create an array of table using loop. how can I do this.
Apr 12, 2011
View teacher siliconindia 's Profile
You can check below code for array displaying.
$array_name=array('a','b','c','d');
print_r($array_name);
for($i=0;$i<count($array_name);$i++)
echo '<li>'.$array_name[$i];
Apr 12, 2011