Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $numero_inicial = 1;
- $numero_final = 1000;
- $casas_decimais = 4;
- $prefixo = "http://www.kamisama.com.br/imagens/";
- $sufixo = ".jpg";
- for ($i = $numero_inicial; $i <= $numero_final; $i++) {
- echo $prefixo . str_pad($i, 4, "0", STR_PAD_LEFT) . $sufixo . "<br>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement