Welcome Guest, Not a member yet? Register   Sign In
url_title not set to lowercase by default
#1

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 $strstring $separator '-'bool $lowercase false): string { ... } 

the lowercase argument is set to false.

Is this intentional?
Reply
#2

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 )
Reply
#3

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.
Reply
#4

(04-21-2020, 03:17 AM)jreklund Wrote: 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.

Glad to help.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB