T
T
Tokenchik2017-01-26 14:49:10
PHP
Tokenchik, 2017-01-26 14:49:10

How to make a tab when outputting a line?

There is a line containing html tags and text between them, how to output with tabbed tags?
From

$str = "<li><a>Вход</a></li><li><a>Регистрация</a></li><li><a>Корзина</a></li>";

Do this 26d82b82c0d848e69800676ef2d3a22a.JPG
upd: output character by character
for ($i=0;$i<strlen($str)-1;$i++) {
     echo $str[$i];
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2017-01-26
@Tokenchik

There is such a thing
Used on this site and many other
places Google more for the word parsing

R
Roman Mirilaczvili, 2017-01-26
@2ord

Learn CSS: margin, padding.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question