Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

how to make first letter of all question to uppercase ??

0 votes
asked Jan 21 in Q2A Core by thewoxs
It's ironic that you didn't capitalize the first letter of your question ;)

2 Answers

0 votes
You need to edit question title, and use the mb_convert_case() function:
 
 
$str "mary had a Little lamb and she loved it so";
$str mb_convert_case($strMB_CASE_TITLE"UTF-8");
echo 
$str// Prints Mary Had A Little Lamb And She Loved It So
 
 

 

answered Jan 21 by NoahY
I am also interested in making first letters of every word uppercase in question title.

However, I am not quite sure how to do that exactly. Is that a piece of code that needs to be edited and if so where do I but that code ( mb_convert_case() function ) exactly.  I am very careful doing these thing, don’t want to mess up anything.


.qa-q-item-title {color:#0B3474; font-weight:bold; font-size:14px;}
    .qa-q-item-title a {color:#0B3474;}
0 votes
.qa-q-item-title{text-transform:capitalize}

in css
answered Feb 2 by jonkon
Thanks, that worked very well.