PHP code example of arispati / emoji-remover

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

    

arispati / emoji-remover example snippets


use Arispati\EmojiRemover\EmojiRemover;

// text with emoji
$text = "Emoji 🌆";

// filter the emoji
$textFiltered = EmojiRemover::filter($text);
// result: "Emoji "

// replace emoji to another string
$textReplaced = EmojiRemover::filter($text, 'removed');
// result: "Emoji removed"