This topic is locked

Upper Case

2/18/2010 3:41:26 AM
PHPRunner General questions
D
dcrera author

Hi
How do it set the search input string to default to upper case iso mixed case ?
Thanks

T
Tempus_Erus 2/19/2010

Hi,
Not quite sure what you are after here.
I use a unique 'authorization code' in a program that requires the first 2 letters of the user id - which is always in lowercase. (windows password and all that).
For ease of reading I convert them to upper case.
<?php

$string = $_SESSION['UserID'];

$initials = substr($string, 0, 2);

$initials = strtoupper($initials);
Sorry if not what you are after, but might spur other ideas!?
Ady