PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$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
Yes I didn't even think about that. I have never used preg_split would you mind giving the syntax
as for the "$a8=$String[];//a8 from array" i was not explaining myself well, i was just wanting to creat a variable called $a8 and assign it to the array value of a8
I will dynamically setting the checkbox to checked or unchecked so if
$a8 == ''; then that box will not be checked but if $a8 == 'a8'; then it will be checked
Actually, preg_split() is not the appropriate function for this. The appropriate regular expression function would be preg_match_all(), but regular expressions are overkill for splitting a string into fixed-length chunks. Use str_split().
McInfo wrote:Actually, preg_split() is not the appropriate function for this. The appropriate regular expression function would be preg_match_all(), ...
preg_match_all and preg_split are both as inappropriate if you ask me:
McInfo wrote:Actually, preg_split() is not the appropriate function for this. The appropriate regular expression function would be preg_match_all(), ...
preg_match_all and preg_split are both as inappropriate if you ask me:
McInfo wrote:Actually, preg_split() is not the appropriate function for this. The appropriate regular expression function would be preg_match_all(), ...
preg_match_all and preg_split are both as inappropriate if you ask me: