What’s the output of the ucwords function in this example?
$formatted = ucwords("CENTER IS COLLECTION OF INTERVIEW QUESTIONS");print $formatted;
What will be printed is CENTER IS COLLECTION OF INTERVIEW QUESTIONS.ucwords() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using strtolower() first.
Secure file download in PHP, Security question PHP, PHP MYSQL Interview Question -Books download - PHP solutions guidelines queries update, phpmysqlquestion
Showing posts with label What’s the output of the ucwords function in this example?. Show all posts
Showing posts with label What’s the output of the ucwords function in this example?. Show all posts
Subscribe to:
Posts (Atom)
How to solve mysql ERROR 1118 (42000) Row size too large
I had this issue with MYSQL 5.7 . The following worked althoug...
-
Introduction to PHP PDO (PHP Data Objects) 1. What is PDO 2. What Databases does PDO support 3. Where do I begin? 4. Connect to ...
-
SimpleXML does not parse text inside CDATA tags in an XML. Consider the XML below: $str = ''; $str.='some text goes here'; ...
-
var collectionNames = db.getCollectionNames(), stats = []; collectionNames.forEach(function (n) { stats.push(db[n].stats()); }); stats = s...