title: Fatal error: Uncaught Error: Call to undefined function ereg_replace() PHP 7
body: <p>below code is giving me the fatal error in php 7</p>
  
  <pre><code>    $jquery_click_hook = ereg_replace("[^A-Za-z0-9]", "", strtolower($value['name']));
  </code></pre>
  
  <p>is there any way to make it compatible with php 7?</p>