How do you write % in php without fucking up the code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mkx
    Confirmed User
    • Nov 2003
    • 4001

    #1

    How do you write % in php without fucking up the code?

    \% /% i forgot?
  • mortenb
    Confirmed User
    • Jul 2004
    • 2203

    #2
    % usually doesn't fuck anything up.. what are you trying to do?

    Comment

    • rowan
      Too lazy to set a custom title
      • Mar 2002
      • 17393

      #3
      Do you mean $? Try $$ or \$

      If you really mean % then try the same for that, although I can't think of anywhere in PHP that a % symbol would be a variable reference or similar...

      Comment

      • PussyTeenies
        Confirmed User
        • Feb 2005
        • 6496

        #4
        listen to rowan

        use escapes \ or \'\
        Need adult hosting?

        Contact us!
        WARM Hosting

        Need an IT solution? or someone to check your site and security? Nossie - IT Professional

        Comment

        • mkx
          Confirmed User
          • Nov 2003
          • 4001

          #5
          %% worked

          Comment

          Working...