Hello, I need some help exploding a string twice to retrieve a final value. My idea was to create a database (which has already been created, etc.). Each table will have a field that will contain information with a syntax like this:
Link1Name|Link1URL
So, after a couple of ones have been filled into that field, the string might look something like this:
My Website|http://www.mysite.com
Hello|http://www.hello.com
Netscape|http://www.netscape.com
Microsoft|http://www.microsoft.com
PHPBuilder|http://www.phpbuilder.com
What I want to do (or tried to do) is explode the string first, by seperating it where ever a new line is, using:
$mystring2 = explode("\n", $mystring);
After which, I tried exploding all those strings using a loop and another explode function, using "|" instead of "\n".
Unfortunately, my code stinks and I couldn't get it working right. Does anyone know an easier way to accomplish this?
Thanks again for all your help thus far.