Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

فاصله بین حروف #10

Open
toonalitegp opened this issue Apr 24, 2023 · 2 comments
Open

فاصله بین حروف #10

toonalitegp opened this issue Apr 24, 2023 · 2 comments

Comments

@toonalitegp
Copy link

سلام و وقت بخیر چطوری میتونم مشکل یک خط شدن جمله رو درست کنم میخوام کلمه ها از هم جدا باشن.. نه حروف... که بیشتر از یک عرضی نوشته نشه

@toonalitegp
Copy link
Author

خط هم برعکس میشه از آخر به اول میره

@soheylfarzane
Copy link
Contributor

خط هم برعکس میشه از آخر به اول میره

        $persian_text_rev = \PersianRender\PersianRender::render('متن شما اینجا باشه');
        $persian_text = '';
        for ($j = mb_strlen($persian_text_rev); $j>=0; $j--) {
            $persian_text .= mb_substr($persian_text_rev, $j, 1);
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants