I have a php feedback form that I want the comment text to be aligned to left or right depending on language: if Arabic should be aligned rtl, any other language no (default which is ltr)
This is the current code line (that makes everything right to left!):
$comment = "<p dir=\"rtl\">".str_replace ("\n", "<br />", $comment);
so I want to tell it: if Arabic, then rtl, if not Arabic, ignore that rtl