-1

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??

3 Answers3

2

try with

ucfirst($_session['name']);
Ayyanar G
  • 1,545
  • 1
  • 11
  • 24
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