Unicode in PHP

Published: Monday, Mar 10, 2008 Last modified: Thursday, Dec 8, 2022

Pretty shoddy, but this might work:

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