PHP: String Flipper Class (Rewrite)

I found this class on Twitter. Nice idea flipping chars by replacing them with their unicode upside down alternative.
But what bugged me was the code, it looked awful. So id did a rewrite to clean it up a little bit.

The class can be viewed here:
http://juliusbeckmann.de/static/scripts/flipper.phps
and downloaded here:
http://juliusbeckmann.de/static/scripts/flipper.php.txt

From the 150 lines of original code, i reduced it to only ~80 lines. I also added a few comments and PHPDoc.

No related posts.


 
 
 

Die Kommentarfunktion zu diesem Beitrag wurde deaktiviert.