Jump to content

ucfirst(strtolower($value)); not giving desired result


laanes

Recommended Posts

Hello,

 

All the names in database are uppercase. Would like to run string formating functions before displaying them.

 

$name = ucfirst(strtolower($results[$i]['name']));

 

It turns everything nicely into lowercase but doesn't capitalize the first letter.

 

Why could that be?

 

Best regards,

laanes

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.