title: Call to undefined function str_contains() php
body: <p>My code works on localhost via APACHE, but when I hosted a website with all the same files and code i get this message:
  <b>Fatal error</b>:  Call to undefined function str_contains() in <b>/storage/ssd3/524/16325524/public_html/static/header.php</b> on line <b>55</b><br />
  PHP Code where error shows:</p>
  <pre><code>&lt;?php
                              $menu = getAllData('meni');
                              global $korisnik;
                              for ($i = 0; $i &lt; count($menu); $i++){
                                  if(isset($_SESSION['korisnik'])){
                                      if(str_contains($menu[$i]-&gt;naziv, 'login') || str_contains($menu[$i]-&gt;naziv, 'reg')){
                                          continue;
                                      }
                                      echo  '&lt;li&gt;&lt;a href='.$menu[$i]-&gt;putanja.'&gt;'.$menu[$i]-&gt;naziv.'&lt;/a&gt;&lt;/li&gt;';
                                  }
                                  else {
                                      if (str_contains($menu[$i]-&gt;naziv, 'profile') || str_contains($menu[$i]-&gt;naziv, 'out')) {
                                          continue;
                                      }
                                      echo '&lt;li&gt;&lt;a href=' . $menu[$i]-&gt;putanja . '&gt;' . $menu[$i]-&gt;naziv . '&lt;/a&gt;&lt;/li&gt;';
                                  }
                              }
                              ?&gt;
  </code></pre>