Posts by Paulo R. D. Lelis • 11 points
3 posts
-
-5
votes4
answers349
viewsA: Every N repetitions display X in PHP
<?php $fim = 100; $incremento = 1; $diferente = 4; $contador=0; do { $contador = $contador + $incremento; $resto = contador % diferente; ?><div class="<?php if ( $resto != 0 ) { echo…
phpanswered Paulo R. D. Lelis 11 -
0
votes6
answers6389
viewsA: What is a legacy code?
Legacy code is the one implemented in part or in full using some old technology in relation to current technology. That is my definition. One of the reasons I see for the existence of such a code is…
-
0
votes5
answers11978
viewsA: How to get the current file name
I transform the string constant FILE in an array using the directory separator ( according to operating system - DIRECTORY_SEPARATOR ) as the field separator to create the array. The last element of…