title: Is it acceptable to use a mix of object oriented style with procedural style in coding PHP?
body: <p>So before I always used to use procedural style to code php, such as:</p>
  
  <pre><code>mysqli_connect
  </code></pre>
  
  <p>or</p>
  
  <pre><code>mysqli_prepare
  </code></pre>
  
  <p>And now I accidentally began to mix it all up and I would do something like:</p>
  
  <pre><code>mysqli_connect();
  </code></pre>
  
  <p>which is procedural style, and then the next command:</p>
  
  <pre><code>$mysqli-&gt;prepare();
  </code></pre>
  
  <p>which is object oriented style.</p>
  
  <p>My code still works, but if I look at php.net whenever it shows examples the entire example is either object oriented or procedural. So I am asking if its ok for me to use object and procedural php code at the same time. Thank you in advance!</p>