title: How to use strtolower() in a query in PHP
body: <p>In a database I have this field: &quot;<strong>TeST</strong>&quot;. I don’t know where the upper case characters are. I just want to <a href="https://www.php.net/manual/en/function.strtolower.php" rel="nofollow noreferrer">strtolower</a> them and do something like this:</p>
  <pre><code>SELECT * FROM table WHERE strtolower(field) = strtolower($var)
  </code></pre>
  <p>How can I do that?</p>