Thank you for your great class.
I use it in several projects and it works perfectly. (but sometimes, it has some problems with Iran Hejri calender)
Yesterday, I was coding my project with your class. And I want a full Arabic date (with Arabic digits). I had looked up in your class, and didn't find a digit convertor. So wrote some function to do it.
Also, I have replaced `preg_replace` function, which used in `en2ar` function with 'str_replace`. Because you didn't have any regular expression in your `patterns`. (Also, `str_replace` is much faster than `preg_replace`)
I've uploaded the improved class. Check it, and if you like, use it in the main package: minus.com/mqiXveXOO/
I think you can put an optional variable for setting local calenders difference with your global calender. (Iran calender problem)