PHP question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smut
    Confirmed User
    • Sep 2002
    • 654

    #1

    PHP question

    $var=explode(""", $string);

    I want to explode a string by the " character.

    How is this possible without breaking the script?

    Any help here is appreciated.
  • Smut
    Confirmed User
    • Sep 2002
    • 654

    #2
    Is it as simple as doing \" ?

    Comment

    • borked
      Totally Borked
      • Feb 2005
      • 6284

      #3
      yes
      or use '

      ie explode('"', $str);

      For coding work - hit me up on andy // borkedcoder // com
      (consider figuring out the email as test #1)



      All models are wrong, but some are useful. George E.P. Box. p202

      Comment

      • borked
        Totally Borked
        • Feb 2005
        • 6284

        #4
        http://www.jeroenmulder.com/weblog/2...ble_quotes.php

        For coding work - hit me up on andy // borkedcoder // com
        (consider figuring out the email as test #1)



        All models are wrong, but some are useful. George E.P. Box. p202

        Comment

        • Smut
          Confirmed User
          • Sep 2002
          • 654

          #5
          Nice! Thanks!

          Comment

          Working...