Answer the question
In order to leave comments, you need to log in
How to display numbers in data-content like 1 2 3 4?
Sorry guys, but I'm not a programmer, so I asked a question to people who understand this.
I make a list output as on this site.
So, my function is responsible for this
function h3_list($attr,$content= null){
return'<div class="custom-list" data-content=''><h3>'.$content.'</h3></div>';
}
<div class="custom-list" data-content=''><h3>Заголовок</h3></div>
Answer the question
In order to leave comments, you need to log in
for ($i = 1; $i < 4; $i++ ) {
echo "<div class=\"custom-list\" data-content=\"$i\"><h3>Заголовок $i</h3></div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question