title: How many = signs are required to equal a value in php?
body: <p>I have following code which is not working with three equal signs (===). Hence it is working with single equal sign (=). I always use === in such cases and that works fine. I am confused why it is not working in this case?</p>
  <pre><code>$vendor_name = &quot;Stock Returned&quot;;
  if($vendor_name = &quot;Stock Returned&quot;)
  {
      $stock_return === &quot;Yes&quot;;
  }
  else
  {
      $stock_return = &quot;No&quot;;
  }
  echo $stock_return;
  </code></pre>
  <p>Result of above code is showing &quot;No&quot;. But in my understanding it should be &quot;Yes&quot;</p>