print_r gives me this result in browser window:
Array ( [0] => 1 ) Array ( [0] => 2 ) Array ( [0] => 3 )
Instead, what I SHOULD be getting is:
Array ( [0] => 5 ) Array ( [0] => 10 ) Array ( [0] => 15 )
So, although everyone's suggestions/help is appreciated, my original question is still unanswered. Am I doing something wrong with the braces {} ??
The "$c{$i}" part in the following line of code should be parsed by PHP as $c1, $c2, and $c3 in my foreach loop, should it not?
preg_match("/\d*/","$c{$i}",$variable);
If PHP reads "$c{$i}" as "$c1" then the line of code would be parsed as:
preg_match("/\d/","$c1",$variable);
-then-
preg_match("/\d/","$c2",$variable);
-then-
preg_match("/\d*/","$c3",$variable);
and the regex would work.
But, for some reason, the brackets aren't working for me because I've done something wrong with the code, and I don't know what.