• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
links problem

#1
[eluser]Richko[/eluser]
I have links with specific letter like "ą", what would be the best way to replace it to "a" and then use to link?

#2
[eluser]JoostV[/eluser]
1. Load the URL helper:
Code:
$this->load->helper('url');

2. Use function
Code:
url_title()
to remove/replace all unwanted characters from strings (also replaces spaces with dashes).

I haven't tested this with "ą", but it replaces characters like ë and é with a regular "e"

EDIT: sorry, doesn't work. Just tested. The function merely removes "ą". You will probably have to write your own preg_replace function.

#3
[eluser]Richko[/eluser]
i tried it removes character

#4
[eluser]JoostV[/eluser]
Yes, it does, I see. I edited my post.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.