PHP Strings Question

Discussion in 'HTML' started by Karl Core, Jan 27, 2005.

  1. Karl Core

    Karl Core Guest

    yeah, I know this is the wrong NG. I just love you guys too much.

    I have a field that is a title field, that I'm converting to ucwords()
    The problem is that if the user enters quotation marks, as in ' "Title Goes
    Here" ' then ucwords() prints it as "title Goes Here"

    Anyone know of any quick fix for this? I suppose I could strip the quotation
    marks and put them back in.


    --
    -Karl Core
    Please Support "Project Boneyard":
    http://www.insurgence.net/info.aspx?action=band&item=boneyard
     
    Karl Core, Jan 27, 2005
    #1
    1. Advertising

  2. Karl Core

    Karl Core Guest

    "Karl Core" <> wrote in message
    news:ctarbb$509$...
    > yeah, I know this is the wrong NG. I just love you guys too much.
    >
    > I have a field that is a title field, that I'm converting to ucwords()
    > The problem is that if the user enters quotation marks, as in ' "Title
    > Goes Here" ' then ucwords() prints it as "title Goes Here"
    >
    > Anyone know of any quick fix for this? I suppose I could strip the
    > quotation marks and put them back in.


    Apologies to the group for not doing a quick Google first.
    Found my answer on the php.net site.

    You're now free to go back to arguing with Richard.


    --
    -Karl Core
    Please Support "Project Boneyard":
    http://www.insurgence.net/info.aspx?action=band&item=boneyard
     
    Karl Core, Jan 27, 2005
    #2
    1. Advertising

  3. Karl Core

    JDS Guest

    On Thu, 27 Jan 2005 08:51:45 -0500, Karl Core wrote:

    > You're now free to go back to arguing with Richard.


    Ugh

    --
    JDS |
    | http://www.newtnotes.com
     
    JDS, Jan 27, 2005
    #3
  4. Karl Core

    Richard Guest

    On Thu, 27 Jan 2005 08:51:45 -0500 Karl Core wrote:


    > "Karl Core" <> wrote in message
    > news:ctarbb$509$...
    >> yeah, I know this is the wrong NG. I just love you guys too much.


    >> I have a field that is a title field, that I'm converting to ucwords()
    >> The problem is that if the user enters quotation marks, as in ' "Title
    >> Goes Here" ' then ucwords() prints it as "title Goes Here"


    >> Anyone know of any quick fix for this? I suppose I could strip the
    >> quotation marks and put them back in.


    > Apologies to the group for not doing a quick Google first.
    > Found my answer on the php.net site.


    > You're now free to go back to arguing with Richard.



    sniff sniff, you're so kind, sniff sniff.
     
    Richard, Jan 27, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ted Zeng
    Replies:
    4
    Views:
    552
    Tim Arnold
    Oct 3, 2006
  2. Ted Zeng
    Replies:
    0
    Views:
    668
    Ted Zeng
    Oct 13, 2006
  3. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    799
    Malcolm
    Jun 24, 2006
  4. torque63
    Replies:
    0
    Views:
    654
    torque63
    Jan 1, 2009
  5. Rajive Narain
    Replies:
    0
    Views:
    2,012
    Rajive Narain
    Sep 18, 2009
Loading...

Share This Page