Quick php text format question.. thnx :)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xxweekxx
    Confirmed User
    • Oct 2002
    • 6780

    #1

    Quick php text format question.. thnx :)

    hey say i want it so that everytime php echos a text/whatever, itll convert it to:

    Example,

    HELLO, HeLLO, hallo,

    I want it to convert it before echoing to:

    Hello

    Basically first letter caps, other letters lower case
    _________________
    I am the best
  • woj
    <&(©¿©)&>
    • Jul 2002
    • 47880

    #2
    ucfirst(strtolower()) ftw
    Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
    Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
    Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

    Comment

    • xxweekxx
      Confirmed User
      • Oct 2002
      • 6780

      #3
      can u give me the full php code..

      say i have:

      <?=$row['firstname']?>

      what will it become exactly?

      sorry im a php noob
      _________________
      I am the best

      Comment

      • woj
        <&(©¿©)&>
        • Jul 2002
        • 47880

        #4
        Originally posted by xxweekxx
        can u give me the full php code..

        say i have:

        <?=$row['firstname']?>

        what will it become exactly?

        sorry im a php noob
        <?=ucfirst(strtolower($row['firstname']))?>
        Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
        Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
        Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

        Comment

        • xxweekxx
          Confirmed User
          • Oct 2002
          • 6780

          #5
          works perfect.. you da man!
          _________________
          I am the best

          Comment

          Working...