The Little Guy Posted July 28, 2008 Share Posted July 28, 2008 If I run this, why doesn't $_POST['teamID'] get removed from $string, if $_POST['teamID'] equals 4? $string = "1;2;3;4;5"; $find = str_replace($_POST['teamID'],"",$string); echo $find; Link to comment https://forums.phpfreaks.com/topic/117025-solved-removing-a-value-from-a-string/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.