Dealing with contents of an Array
<p>I have an comma seperated list of values held as a string: </p>

<pre><code>blue, left-right-middle, panther.png
</code></pre>

<p>I then have three functions:</p>

<ol>
<li><p>Sets background colour</p></li>
<li><p>Sets order of columns for layout</p></li>
<li><p>Sets a profile image</p></li>
</ol>

<p>At the moment I use a <code>for each</code> loop to explode the values into seperate strings, but how can I better control the results.</p>

<p>E.g </p>

<pre><code>First result of array = Sets background colour
    Second result of array = Sets order of columns
    Third results of array = profile image
</code></pre>

<p>Can I write the results of the array to 3 seperate variables in anyway, so I can assign the variable to each function?</p>

<p>Like so:</p>

<pre><code>    First result of array = $backgroundColour
    Second result of array = $orderColumns
    Third results of array = $profileImage
</code></pre>

<p>Any ideas how I might go about this?</p>
