PHP code example of joungkyun / ereg-extension-wrapper

1. Go to this page and download the library: Download joungkyun/ereg-extension-wrapper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

joungkyun / ereg-extension-wrapper example snippets


int ereg ( string $pattern , string $string [, array &$regs ] )

int eregi ( string $pattern , string $string [, array &$regs ] )

string ereg_replace ( string $pattern , string $replacement , string $string )

string eregi_replace ( string $pattern , string $replacement , string $string )

array split ( string $pattern , string $string [, int $limit = -1 ] )

array spliti ( string $pattern , string $string [, int $limit = -1 ] )

string sql_regcase ( string $string )


# even if loaded ereg extension, well done.
 "matched\n";

if ( ! eregi ('A', 'aaa') )
    echo 'not ';
echo "matched\n";


 'eregi_replace is supported ';
if ( function_exists('eregi_replace') )
    echo 'YES';
else
    echo 'NO';

echo "\n";