Welcome Guest, Not a member yet? Register   Sign In
array
#1

[eluser]georgerobbo[/eluser]
Is there a better way to structure this array?

Code:
<div id="panel_wrapper">
                
                    <div id="panel_healthy">
                    </div>
                
                    <div id="panel_information">
                        <div class="container">
                        &lt;?php $quote[] = array ( 'author' => 'Doug Larson', 'quote' => 'Life expectancy would grow by leaps and bounds if green vegetables smelled as good as bacon.'); ?&gt;
                        &lt;?php foreach($quote as $item):?&gt;
                            <div class="quote"><p>&lt;?php echo $item['quote']; ?&gt;</p></div>
                            <div class="author"><p>&lt;?php echo $item['author']; ?&gt;</p></div>
                        &lt;?php endforeach; ?&gt;
                        </div>
                    </div>
                
                    <div id="panel_unhealthy">
                    </div>
                </div>


Messages In This Thread
array - by El Forum - 09-12-2009, 10:53 AM
array - by El Forum - 09-12-2009, 11:03 AM
array - by El Forum - 09-12-2009, 11:10 AM
array - by El Forum - 09-12-2009, 11:11 AM
array - by El Forum - 09-12-2009, 12:41 PM
array - by El Forum - 09-12-2009, 02:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB