What is the difference between = and == in PHP?

PHP uses the operator = to assign a specific value to something. Assigning a value doesn’t mean it ‘is equal to’ something. To make something equal the operator == should be used.



Was this useful?