Skip to content

Instantly share code, notes, and snippets.

View emente's full-sized avatar
💭
I may be slow to respond.

mnt emente

💭
I may be slow to respond.
View GitHub Profile
@emente
emente / php7compat.php
Last active May 24, 2019 07:03
tested replacements for ereg_replace() eregi_replace() ereg() eregi() split() (deprecated php stuff)
<?php
/**
* php 5.3 and utf-8 "compatibility layer"
*
* @author mnt
*/
if (!function_exists('force_utf8')) {
function force_utf8($str)
{