DEV Community

Discussion on: PHP loop patterns

Collapse
 
rehmatfalcon profile image
Kushal Niroula

Not strictly a pattern , also not something I made. I saw this somewhere once, I just cant seem to remember where (If its yours, please inform me).

$i = 0;
while($i < 3) {
    printf("%c", 73 + $i * $i * 3);
    $i++;
}

This script prints ILU <3

Collapse
 
adhocore profile image
Jitendra

not mine. just seeing this. i assume it is public domain somewhere.