when I echo a name in $_session['name'];
it says "h" rnoob but the first letter is little, and I want makes it so the first letter is big like "H" rnoob??
Asked
Active
Viewed 873 times
-1

ventee khara
- 1
- 2
3 Answers
2
You can use ucfirst
function of php as:
ucfirst($_session['name'])
and you can check different functions for respective from PHP Manual

Narendrasingh Sisodia
- 21,247
- 6
- 47
- 54
0
Use php function ucfirst() which will give the first character of string in uppercase.
$test = ucfirst($_session['name']);
echo $test;
i hope this will help you

lalitpatadiya
- 720
- 7
- 21
-
Thans you its help me :D – ventee khara Mar 20 '15 at 13:21