Creating menu from Text
<p>I am very new to PHP programming and dont know the exact syntax of various labrary functions like , split, find ,etc.
I am having following text with me
in a string variable </p>

<pre><code>$menu = '/home-page|HOME
/our-iphone-app|OUR iPhone APP
/join-us|JOIN ME
/contact-us|CONTACT US';
</code></pre>

<p>I want to populate to arrays with this text one array containing the portion before the pipe | and second array contains portions after pipe. How to do this using some split by <code>char(|)</code> method.</p>

<p>Finally arrays must contain </p>

<pre><code>$arraypage = {'0'-&gt;'/home-page','1'-&gt;'/our-iphone-app'} // etc, and...
$arrayTitle = {'0'-&gt;'HOME','2'-&gt;'OUR iPhone App'} // etc
</code></pre>

<p>Thanks in advance guys  </p>
