PHP code example of rinaldi / raita

1. Go to this page and download the library: Download rinaldi/raita 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/ */

    

rinaldi / raita example snippets



use Rinaldi\Raita\Raita;
use Rinaldi\Raita\ShiftTable;

$string = "Hello Word";
$patterm = "ello";

$shitfTabel = ShiftTable::shifting($patterm);

$result = Raita::search($patterm,$shitfTabel,$string);

if($result >0){
    echo "Pola ditemukan";
}else{
    echo 'Pola tidak ditemukan';
}