odd explode( function needed
Posted: Wed Jul 01, 2009 3:49 pm
if any one can help with this it would be much appreciated:
I have a string that looks something like this but longer
What i need to do is seperate them into an array so thay look like this:
each value represents a text box defined as
all check boxes are predefined as a-z1-9
Thanks in advance
I have a string that looks something like this but longer
Code: Select all
$String = a3a8b2a4c9z8a9;Code: Select all
$a3 =$String[]; //a3 from array
$a8=$String[];//a8 from array
$b2=$String[];//b2 from array
$a4=$String[];//a4 from array
$c9=$String[];//c9 from array
$z8=$String[];//z8 from array
$a=$String[]';//9a9 from array
//There are over 250 possible combinations aka a1 a2 a3 ... a9 b1 b2...b9 .... z9
Code: Select all
<tr>
<td><div align="left">
<input name="a3" type="checkbox" id="a3" value="1" <?php echo $a3; ?> />
name of check box X# of 250</div></td>
</tr>
<tr>
<td><div align="left">
<input name="a8" type="checkbox" id="a8" value="1" <?php echo $a8; ?> />
name of check box X# of 250</div></td>
</tr>
<tr>
<td><div align="left">
<input name="b2" type="checkbox" id="b2" value="1" <?php echo $b2; ?> />
name of check box X# of 250</div></td>
</tr>
<tr>
<td><div align="left">
<input name="a4" type="checkbox" id="a4" value="1" <?php echo $a4; ?> />
name of check box X# of 250</div></td>
</tr>
<tr>
<td><div align="left">
<input name="c3" type="checkbox" id="c3" value="1" <?php echo $c9; ?> />
name of check box X# of 250</div></td>
</tr>
<tr>
<td><div align="left">
<input name="z8" type="checkbox" id="z8" value="1" <?php echo $z8; ?> />
name of check box X# of 250</div></td>
</tr>
<tr>
<td><div align="left">
<input name="a9" type="checkbox" id="a9" value="1" <?php echo $a9; ?> />
name of check box X# of 250</div></td>
</tr>
Thanks in advance