[ create a new paste ] login | about

Link: http://codepad.org/b00HDv32    [ raw code | output | fork ]

PHP, pasted on Feb 9:
1
2
3
4
5
6
<?php

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\n\n";
}


Output:
1
2
3
4
5
6
7
8
9
<div class="custom-list" data-content="1"><h3>Заголовок 1</h3></div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor

<div class="custom-list" data-content="2"><h3>Заголовок 2</h3></div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor

<div class="custom-list" data-content="3"><h3>Заголовок 3</h3></div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor



Create a new paste based on this one


Comments: