Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Have a look at swiper , add some css and I think you can get what you need
Why are you making it so complicated?)
"". - this is generally some kind of tin.
was: it is
necessary:
-----------------------
In one line :)
UPD: but in fact the answer to the question was given by Igor Belka !
stackoverflow.com/questions/5592994/remove-the-las...$str = substr($str, 0, -1);
<?
echo "<h2>Вывести циклом 10 чисел</h2>";
$str = "";
for ($i = 1; $i <= 10; $i++) {
$str .= ($str ? ", " : "") . $i;
}
echo "« $str »";
?>
$text = '';
for ($i = 1; $i <= 10; $i++) {
$text .= $i . ', ';
}
echo '«' . rtrim($text, ', ') . '»';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question