putting text with alot of " ' into a variable... - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

putting text with alot of " ' into a variable...

FirestormFirestorm Posts: 162Member
Hi,
I have another problem:
how can I put some text into a variable that contains alot of " and ' that should not be escaped by a . I know in PERL you can write something like:
$text = |
""''ladsjflaksjdfh""''
|;

is there something similar in PHP?
________________________________
[red]http://www.againsttcpa.com[/red]
[blue]Don't give big brother a chance![/blue]

Comments

  • DarQDarQ Posts: 1,625Member
    you dont wanna use slashes to escape those chars.??? hmm.

    http://www.php.net

    stripslashes
    addslashes

    you could use those functions perhaps


    : Hi,
    : I have another problem:
    : how can I put some text into a variable that contains alot of " and ' that should not be escaped by a . I know in PERL you can write something like:
    : $text = |
    : ""''ladsjflaksjdfh""''
    : |;
    :
    : is there something similar in PHP?
    : ________________________________
    : [red]http://www.againsttcpa.com[/red]
    : [blue]Don't give big brother a chance![/blue]
    :

    [size=5][italic][blue]Dar[RED]Q[/RED][/blue][/italic][/size]
    url--> http://space.servehttp.com (ssh,ftp,http etc etc)

  • DigitalSmashDigitalSmash Posts: 1Member
    [b][red]This message was edited by DigitalSmash at 2003-7-27 2:37:11[/red][/b][hr]
    $sData = <<<data
    You can put anything in here ' " ' " *&%$"
    data;

    That should do it!
    Dave


  • FirestormFirestorm Posts: 162Member
    Thank you all. It helped me out.
    ________________________________
    [red]http://www.againsttcpa.com[/red]
    [blue]Don't give big brother a chance![/blue]

Sign In or Register to comment.