Return to Snippet

Revision: 39735
at January 20, 2011 06:19 by ashworthconsulting


Updated Code
<?php
if (stristr($fileName, '.php'))
    $filename.='.php';
?>

Revision: 39734
at January 20, 2011 06:18 by ashworthconsulting


Initial Code
<?php
if (stristr($fileName, '.php'))
    $filename.='.php';
?>

Initial URL

                                

Initial Description
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.

Initial Title
Alternative to eregi()

Initial Tags

                                

Initial Language
PHP