how do i create all possible letter combinations with php
I looked around stack overflow and couldn't find a sample on what I needed.
how would I create something like this?

so lets say i want all possible combinations of up to 5 characters.
the output would look like this:


    aaaaa
    aaaab
    aaaac
    aaaad
    
    ..etc
how do i create all possible letter combinations with php
===

I looked around stack overflow and couldn't find a sample on what I needed.
how would I create something like this?

so lets say i want all possible combinations of up to 5 characters.
the output would look like this:


    aaaaa
    aaaab
    aaaac
    aaaad
    
    ..etc