Welcome Guest, Not a member yet? Register   Sign In
I can't get a simple foreach loop going here!
#7

[eluser]Lone[/eluser]
[quote author="thepyromaniac" date="1203105960"]
Possibly neater in the sense that there is less characters on the page, but bloody confusing when you have a few nestwed structures. Using the alternative syntax means you have at least some idea what is being closed, instead of just a random }.[/quote]

Tab baby tab Tongue

In views I have been getting into the habit of the following for a foreach:

Code:
<? foreach ($results as $row) { ?>
Blah blah blah freakn blah
<? } // end results output ?>


Messages In This Thread
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 05:40 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 06:04 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 06:13 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 06:19 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 08:06 AM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 02:19 PM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 03:08 PM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 04:36 PM
I can't get a simple foreach loop going here! - by El Forum - 02-15-2008, 06:11 PM
I can't get a simple foreach loop going here! - by El Forum - 02-16-2008, 10:09 PM
I can't get a simple foreach loop going here! - by El Forum - 03-12-2008, 06:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB