Welcome Guest, Not a member yet? Register   Sign In
Something messed up with foreach as $item
#10

[eluser]ELRafael[/eluser]
this $item.... first, it looks like an array. like $item['var'] or $item->var.. second, looks a object, $item->metod().

For good pratice, try to rename $item... i know that php has implicit conversion, but it's not a good pratice to make this!


Messages In This Thread
Something messed up with foreach as $item - by El Forum - 09-13-2007, 05:05 PM
Something messed up with foreach as $item - by El Forum - 09-13-2007, 06:27 PM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 01:08 AM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 01:16 AM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 01:23 AM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 04:27 AM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 04:31 AM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 08:28 AM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 10:30 AM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 11:38 AM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 12:41 PM
Something messed up with foreach as $item - by El Forum - 09-14-2007, 01:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB