P
P
prrrrrrr2018-12-04 09:31:34
Notepad++
prrrrrrr, 2018-12-04 09:31:34

How to make a loop or something like that in notepad++?

Please tell me there is a code

<?php
$i=0;
$html = file_get_contents('https://site.ru/page/1');
...
?>

How to copy the whole code in one fell swoop for example 100 times in notepad++ replacing page/1 with a loop up to page/100 ? If it's possible, please tell me how.
The result is something like this:
<?php
$i=0;
$html = file_get_contents('https://site.ru/page/1');
...
?>

---...---

<?php
$i=0;
$html = file_get_contents('https://site.ru/page/100');
...
?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
feniksdv, 2018-12-04
@feniksdv

for ($i=0;$i<100;$i++){
    $html = file_get_contents('https://site.ru/page/'.$i);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question