Skip to content

Instantly share code, notes, and snippets.

View Igzak's full-sized avatar
🎯
Focusing

Igzak

🎯
Focusing
View GitHub Profile
@Igzak
Igzak / removeEmoji.php
Last active April 28, 2021 13:36
Remove emoji from string
/**
* @param string $text
*
* @return string
*/
function removeEmojis(string $text): string
{
/** @var array $emojiRegexp
* EXCLUDE:
* \x{0023} - #