In PHP, we know that we can randomly shuffle string characters using function str_shuffle()
. So a string "developer"
will become "lrevdeope", "dvolpeere"
and so on every time.
But this is not the thing I want. Instead, I want to randomly shuffle only consonants. So "developer"
should become "verelodep", "leveroped"
etc. on each page refresh.
How can we achieve it? Any idea?