...

View Full Version : replacing characters in a string



se4b4ss
10-20-2004, 08:16 PM
anybody have a simple php script that i can use to replace characters in a string? i want to replace all hyphens with spaces....

*edit-also, how do i compare one string to another without considering capitalization. example, i'd like if (steve==Steve) to result in true.

thanks in advance,
steve

se4b4ss
10-20-2004, 08:25 PM
ok, got the str_replace to work...

raf
10-20-2004, 08:36 PM
just transform both values to all-uppercase or lowercase (with strtoupper() ) or lowercase (with ...)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum