![]() |
|
|
+ Search |
![]()
|
Mar 23rd, 2001 19:12
Ben Udall, mike gifford, http://www.php.net/manual/en/function.eregi-replace.php
eregi_replace refuses to work right (it just removed the colons instead
of replacing them with nulls), however preg_replace and str_replace
worked fine.
$str_new = preg_replace("/:/", chr(0), $str);
or
$str_new = str_replace(":", chr(0), $str);