" data-bs-original-title="" title="">
Is this a homework assignment? If so, we will not just give you the answer. I will, however, help you find the answer yourself. You will need the functions range(), shuffle(), and sort(). Look these up on php.net.
Looks good. The only things I would add is caching and css/js minification for faster loading times. I implemented this into my framework a few years ago and it has worked quite well. Makes debugging a little harder but worth it.
Shouldn't `/(?!=` at the beginning be `/(?!`? Not a regular expression expert, but I don't remember the != together. Haven't used lookarounds in awhile.
The End.