What is the equivalent in PHP for Python's pass statement?

Jan Tojnar picture Jan Tojnar · May 17, 2010 · Viewed 19.7k times · Source

Do you know any PHP statement that works like Python's pass statement?

Answer

Tyler Carter picture Tyler Carter · May 17, 2010

Just leave the bracket's empty...

Python has the pass word because they don't use brackets to define the body part of classes, function, and other statement. PHP doesn't have this dilemma , and therefore doesn't need something to say that a body statement is empty.