0

my english is not good. sorry.

this is ok:

<?php 
$category = "music";
$subcategory = "pop";
echo "<a href=\"localhost/$category/$subcategory\"> Pop Music </a>";
//url output: localhost/music/pop 
?>

this is ok:

<?php 
$category = "music";
$subcategory = "پاپ";
echo "<a href=\"localhost/$category/$subcategory\"> Pop Music </a>";
//url output: localhost/music/پاپ
?>

my problem:

<?php 
$category = "موسیقی";
$subcategory = "پاپ";
echo "<a href=\"localhost/$category/$subcategory\"> Pop Music </a>";
//url output: localhost/موسیقی/پاپ
//It should be like this : localhost/پاپ/موسیقی
?>

It should be like this : localhost/پاپ/موسیقی

2
  • 1
    Can't reproduce it's working here Commented Dec 10, 2021 at 7:07
  • @Jerson Sorry. I edited my questions. My problem is that two Persian words come together Commented Dec 10, 2021 at 7:30

1 Answer 1

1

in mixing rtl with ltr font language this is happened. your code have not any problem.in show just different view but actually its work. To be sure, you can var_dump() output and see the result.

Sign up to request clarification or add additional context in comments.

3 Comments

Sorry. I edited my questions. My problem is that two Persian words come together
my answer is same again. you can test it.
thanks, but displacement is not just in appearance. It's really wrong and it does not work. see this link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.