Jump to content

string to upper


CyberShot

Recommended Posts

I was doing some reading on php functions and I found that to make a string all uppercase you would do

 

strToUpper($str)

 

I also found that php manual says to use mb_strToUpper($str)

 

both work and it doesn't matter if I use uppercase or lowercase in the function, it still works. So my question is, "Why does the function work either way with mb or without mb and what does mb suppose to mean?" and is using uppercase in the function name a user preference or should I use all lowercase? strtoupper versus strToUpper?

Link to comment
https://forums.phpfreaks.com/topic/177136-string-to-upper/
Share on other sites

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.