title: String value equals true
body: <p>I have a function that returns <code>TRUE</code> or <code>FALSE</code> or <code>"Test_operation"</code>, and I am looping it to do some things. As you can see the value of <code>$comment_reply</code> is <code>Test_operation</code>.</p>
  
  <pre><code>$comment_reply = $this-&gt;Profunction-&gt;insert_comments();
  echo $comment_reply; // returns Test_operation
  if ($comment_reply==TRUE)
  {
      echo json_encode('Success');
  }
  elseif($comment_reply==FALSE)
  {
      echo json_encode('Failed');
  }
  elseif($comment_reply =="test_operation")
  {
      echo json_encode('This Action Cannot be done!');
  }
  </code></pre>
  
  <p>But still </p>
  
  <pre><code>if ($comment_reply==TRUE)
  {
      echo json_encode('Success');
  }
  </code></pre>
  
  <p>This portion getting executed. Why does it happen?</p>
  
  <p>In that function I am returning like this:</p>
  
  <pre><code>return TRUE;     // if all success
  return FALSE;      // if there is some problems
  return "Test_operation";     //No insertion need to be done,may be for preview purpose.
  </code></pre>
  
  <p>SOLVED : I changed <code>bool</code> values to string.
  So it will be </p>
  
  <pre><code>return 'TRUE';     // if all success
      return 'FALSE';      // if there is some problems
      return "Test_operation";     //No insertion need to be done,may be for preview purpose.
  </code></pre>