0

If I want to ignore something in python I usually just put pass

example

if a > b:
   pass

how do i do something similar in php?

answerSeeker
  • 2,692
  • 4
  • 38
  • 76

1 Answers1

0

There's no need for something similar.

https://www.w3schools.com/python/ref_keyword_pass.asp states:

When the pass statement is executed, nothing happens, but you avoid getting an error when empty code is not allowed. Empty code is not allowed in loops, function definitions, class definitions, or in if statements.

But in PHP emtpty code is allowed.

schmauch
  • 630
  • 1
  • 7
  • 10