String Manipulation
| From: | Rodrigo de Oliveira Costa | Date: | Tue, 06 Jun 2006 04:17:07 +0000 |
| Subject: | String Manipulation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-237439@lists.php.net to get a copy of this message | ||
Hi guys I have the following intention and would really like to know
if tis possible and if its possible how should it be done.
I have a string that is something like this:
"<INPUT TYPE=BUTTON Value=' « '
onClick="self.location='/s/979216/22/'"><SELECT title='chapter
navigation' Name=chapter onChange="self.location = '/s/979216/'+
this.options[this.selectedIndex].value + '/';"><option value=1 >1.
Prologue<option value=2 >2. First days<option value=3 >3. Drastic
choice<option value=4 >4. Sowarocs<option value=5 >5.
Training<option value=6 >6. Teneb</select>"
How can I retrieve the Values and assign it to a variable, and next
retrieve the name and assign it to another variable and so on...
I'd like to get something like:
1
1. Prologue
2
2. First days
3
3. Drastic choice
4
4. Sowarocs
5
5. Training
6
6. Teneb
and eacch of these should be in a variable, remembering that the
number of variables is dynamic so it can be only one or 100.
Thanks guys,
Rodrigo