What is wrong with this line ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts

  • James Sleeman
    Guest replied
    Re: What is wrong with this line ?

    fartsniff wrote:
    [color=blue]
    > It has to be something with the characters, right ?
    >
    > $search = array(".", "\",[/color]

    \ is the escaoe character, that second array entry is an unclosed string
    (the closing " is escaped).

    --
    James Sleeman
    Gogo:Code http://www.gogo.co.nz/
    Email domain : gogo.co.nz see user in from header!

    Leave a comment:


  • fartsniff
    Guest replied
    Re: What is wrong with this line ?

    as usual, thanks again for coming to my rescue =)

    "Andy Hassall" <andy@andyh.co. uk> wrote in message
    news:j1degvkfsj aaa2s8smm8v6fn8 i7u8atlkk@4ax.c om...[color=blue]
    > On Sat, 5 Jul 2003 12:21:56 -0800, "fartsniff" <fart@sniff.com > wrote:
    >[color=green]
    > >"\",[/color]
    >
    > Wrong.
    >
    > But later in the same statement:
    >[color=green]
    > >"\\"[/color]
    >
    > Right.
    >
    > --
    > Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    > Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)[/color]


    Leave a comment:


  • fartsniff
    Guest started a topic What is wrong with this line ?

    What is wrong with this line ?

    It has to be something with the characters, right ?

    $search = array(".", "\", "+", "-", "*", "/", "!", "%", ">", "<", "^", "(",
    ")", "[", "]", "{", "}", "\\", "=", "$", "#", "?", "~", ":", "_", "&amp",
    "&copy", "&nbsp", "&quot", "&uuml", "&", ";", "\n");

    $line = str_replace($se arch, " ", $line);


Working...