replacing part of string with values in array

From: Date: Thu, 12 Jul 2001 23:30:38 +0000
Subject: replacing part of string with values in array
Groups: php.general 
Request: Send a blank email to php-general+get-57650@lists.php.net to get a copy of this message
hello, ok heres the thing ;) lets say i have array("part1", "part2", "part3", "part4"); now i have string like $string = "here's PART and heres PART, another PART here and final PART here"; now i wanna replace first PART in string with part1 from array and second PART with part2 from array ... one more thing is that i dont know how many parts there will be in string .. but i know that array and string will have the same number of parts ;) help plz :)

« previous php.general (#57650) next »