url_title not set to lowercase by default |
On this page: https://codeigniter.com/user_guide/tutor...items.html
it reads: "This contains a new function url_title(). This function - provided by the URL helper - strips down the string you pass it, replacing all spaces by dashes (-) and makes sure everything is in lowercase characters." But looking at the function: PHP Code: function url_title(string $str, string $separator = '-', bool $lowercase = false): string { ... } the lowercase argument is set to false. Is this intentional?
Yes, It is allowing you to set the character case. Default is to leave it alone.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Hi, thanks for pointing that out, the code example dosen't match description.
I must have missed that the last time I updated that part of the userguide. Will fix it ASAP. |
Welcome Guest, Not a member yet? Register Sign In |