Alternative to eregi()


/ Published in: PHP
Save to your folder(s)

This is an easy alternative to eregi() for comparison of string data if you need it. I used to use eregi() all the time in my IF statements but it's deprecated now.


Copy this code and paste it in your HTML
  1. <?php
  2. if (stristr($fileName, '.php'))
  3. $filename.='.php';
  4. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.