Quick PHP Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dodger21
    Confirmed User
    • Jan 2003
    • 2680

    #1

    Quick PHP Question

    How can I check to see if a PHP tag has a blank string?

    PHP Code:
    if ({_tag_}hahahaha"") 
    
    isn't working.

    I keep receiving

    Parse error: parse error, expecting `'(''

    Tried
    PHP Code:
    if (({_tag_})hahahaha"") too. Same result] 
    
    Last edited by dodger21; 12-20-2004, 03:59 PM.
    icq: 237055440
  • dodger21
    Confirmed User
    • Jan 2003
    • 2680

    #2
    ugh fucking hahahahaha bullshit
    icq: 237055440

    Comment

    • margarita
      Confirmed User
      • Jun 2003
      • 917

      #3
      Check out my favourite kinky sponsor and must-have tool Nifty Stats

      Comment

      • fuzebox
        making it rain
        • Oct 2003
        • 22352

        #4
        Err, going to need an un-butchered version of the code to offer any advice

        Comment

        • SilverTab
          Confirmed User
          • Nov 2001
          • 5060

          #5
          Originally posted by fuzebox
          Err, going to need an un-butchered version of the code to offer any advice
          yup...cause php tag and blank string?? not sure what you're talking about LOL

          it's easy to check if a variable is an empty string...not sure what you mean with all these hahaha though
          mmm my sig was too big... no more cool animation
          but hey still! need php? ICQ: 94586959

          Comment

          • fuzebox
            making it rain
            • Oct 2003
            • 22352

            #6
            Originally posted by SilverTab
            not sure what you mean with all these hahaha though
            GFY is replacing chunks of his post with "haha" to prevent hostile javascript.

            Comment

            • Repetitive Monkey
              Confirmed User
              • Feb 2004
              • 3505

              #7
              Like so: if($string= ="")

              Or so: if(strlen($string)<1)

              Or so: if(!isset($string))

              Comment

              Working...