Unicode in PHP

Published ยท Updated 10 Feb 2020

Pretty shoddy, but this might work:

$value = preg_replace('/\x{FEFF}/', '', $value);