php hapus byte null dari string

$text = str_replace("\0", "", $text);
Friendly Hawk