I have a simple foreach like the following:
$range = range(1, 10);
foreach ($range as $times) {
echo 'example' . $times . '<br>';
}
what would output the result below-
example1
example2
example3
example4
example5
example6
example7
example8
example9
example10
instead of having the echo 'example' . $times . '<br>';
i would like to echo one variable and have the same result, any answers welcome.
You mean build a string?