Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8014957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:06:24+00:00 2026-06-04T20:06:24+00:00

$item = ‘some <html> goes <div class=here> and </div> can be placed <em> some

  • 0
$item = 'some <html> goes <div class="here"> and </div> can be placed <em>     some words</em>, and then more </html> can exist';

How do I capitalize the first letter of the first word inside <em>...</em> only?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:06:26+00:00Added an answer on June 4, 2026 at 8:06 pm

    this?

    function ucfirstword($str) {
       $estr = explode(" ",$str);
       $estr[0] = ucfirst($estr[0]);
       return implode(" ",$estr);
    }
    
    ...
    echo "<em>     ".ucfirstword("some words")."</em>";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

css .item { display: none; } html <div> <div class=item>machin</div> <div class=item>chose</div> <div class=item>chouette</div>
#item creates a div with id=item .box#item creates a div with class=box and id=item
$(.item).hover( function () { $(this).slideDown().append( $(<div class=\attending\>Yes/No</div>) ); }, function () { $(this).find(div:last).slideUp().remove(); }
In item 5 of More Effective C#, the following is presented: public class EngineDriver<T>
@foreach (var item in set) { <li> <div class=slidera_num>@item.VoteCount</div> <div class=slidera_button><a href=# id=vote name=vote
Item 1 <div id=i2><span id=e2>Item 2</span></div> When I click on Item 1 it should
class Item(models.Model): ... class ItemSet(models.Model): items = models.ManyToManyField(Item, related_name=itemsets) I have a list of
My base class: class Item { protected: int count; string model_name; int item_number; public:
Item 2 of the Joel Test is Can you make a build in one
Each item in my array is an array of about 5 values.. Some of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.