[Koha-devel] What is "uc"

Pat Eyler pate at eylerfamily.org
Thu Apr 11 05:57:20 CEST 2002


On Thu, 11 Apr 2002, paul POULAIN wrote:

> Roger Buck wrote:
>
> >I note in a few modules (Search.pm, Security.pm and maybe others), the
> >use of the string "uc" - for example "$password = uc $password".
> >
> >What does the "uc" do?
> >
> Upper Case

Actually, that should be UPPER CASE, ucfirst does Upper case.

That is uc($string) returns $string converted to uppercase characters,
ucfirst($string) returns $string with the first character converted to
uppercase characters.

Just for completeness there also exist both lc and lcfirst.


-pate

> --
> Paul
>
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/koha-devel
>





More information about the Koha-devel mailing list