| | |
Looping through the first row of a 2 dimensional array
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Apr 2008
Posts: 69
Reputation:
Solved Threads: 0
What's wrong about this code?
($matches is a 2 dimensional array)
for($i = 0; $i < count($matches); $i++)
{
It's not the actual code, it's just an example, originally it has to put the names of a team playing home in a table.
It only shows the first team, it doesn't seem like it goes any further than $i=0...
greets K?!
($matches is a 2 dimensional array)
for($i = 0; $i < count($matches); $i++)
{
echo $matches[$i][0]->getName_team_home()."<br />";}
It's not the actual code, it's just an example, originally it has to put the names of a team playing home in a table.
It only shows the first team, it doesn't seem like it goes any further than $i=0...
greets K?!
Heaven ain't got no ghetto. It's got pearly gates and streets of gold.
![]() |
Similar Threads
- For loop (C++)
Other Threads in the PHP Forum
- Previous Thread: how can i display the city name??
- Next Thread: php table export excel worksheet decimal places problem
| Thread Tools | Search this Thread |
# 5.2.10 ajax apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date display dissertation dynamic echo echo$_get[x]changingitintovariable... email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link local login loop mail memberships menu mlm multiple mysql mysqlquery oop open paypal pdf persist php problem query radio random recursion regex remote rss script search server sessions sms soap sockets source space spam sql syntax system table tutorial update upload url validation validator variable video web xml youtube





