PHP code example of topolis / filter

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

    

topolis / filter example snippets


// Filter variable $text with Strip filter.
$text  = Filter::filter($text, "strip");

$value = Filter::filter($value, $filter, ["Parameter" => "Value"]);

$value = Filter::filter($value, ["plain","strip","number], [ ["options" => "params"], ["options" => "params"], ["options" => "params"]]);

$value = Filter::filter($value, $filter, ["type" => single]);