Jump to content

WilkoUK

New Members
  • Posts

    3
  • Joined

  • Last visited

WilkoUK's Achievements

Newbie

Newbie (1/5)

0

Reputation

1

Community Answers

  1. Ok.. I am a total plonker! I looked a bit harder and the declarations are in fact made conditionally. I've moved them outside of the if() block. That'll solve the issue. My fault, my bad, apologies for wasting peoples time.
  2. Fair comments but no, it’s an unconditional declaration and in the same scope. #baffled
  3. Hi folks, first time here although I've been coding in PHP for more years than I can remember. I'm in the process of moving some legacy code from v7.4 upto 8.2, which has the following declaration: $pri_sec_replaced = FALSE; However, when executed I receive the following warning: PHP Warning: Undefined variable $pri_sec_replaced in ... Am I missing something fundamental here? As far as I'm concerned the boolean has been declared and set. Thanks in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.