Users Pricing

forum

home / developersection / forums / what is the preferred way to write this if statement, and why?

What is the preferred way to write this if statement, and why?

Erick Wilsom 3597 27 Oct 2022

What is the preferred way to write this if statement, and why?

if( 5 == $someVar ) or if( $someVar == 5 )

Erick Wilsom

student

Writing is my profession! I have written hundreds of article for many organizations and looking forward to work with growing organization. I am compatible to produce content in many categories including International politics, Healthcare, Education, Lifestyle, etc.. I understand the value of your time that you have invested to read my bio. #thanks


2 Answers