Well I have the following array:
$teste = array(1,2,3,4);
When I want to write it on the screen do I do this?
foreach ($teste as $c) {
echo $c;
}
The result is: 1234
I need to write the result 2 times and following the order, like this: 11223344
Does anyone know how to do this using just foreach
?
The code that is inside foreach
is large and I do not want to repeat it, I want to find some way to do this in%