-2

I have tried to do url_title().

but how to customize this function?

Suresh Karia
  • 17,550
  • 18
  • 67
  • 85
Sumit
  • 1
  • 2
    Seriously this is a terrible question. Give us a clue why don't you! Anyway despite your total lack of information about what or how you want to do something you could look at this CI library https://github.com/ericbarnes/CodeIgniter-Slug-Library – Mike Miller Apr 14 '15 at 13:58
  • yup....here i don't want to remove spacial characters i just want to relplace it with "dash".. but url title() is totaly remove all characters and only replace space with "dash". so i need to customize this url title(); – Sumit Apr 15 '15 at 05:02
  • You should have said that i your question – Mike Miller Apr 15 '15 at 10:47

1 Answers1

0

ok guys... i found the solution.... i customize the url title in url_helper..with use

$str = preg_replace('/[^A-Za-z0-9-]+/', '-', $str);

and its work

Sumit
  • 1