Error while writting Arabic to image

Your way of reversing Arabic characters does not take into account the nature of connected glyphs. However, it is a valid trick to solve the issue of PHP/GD not automatically supporting RTL languages like Arabic. What you need to do is to use ar-php library that does exactly what you intended. Make sure your PHP … Read more