+ 1

PHP

Can you please help me, Create a PHP function that will perform string manipulation similar to the example below: echo ReplaceAll("The birdhouse is inside the house.", "house", "tub"); Output: The birdtub is inside the tub. echo ReplaceAll("Apearle Pear", "pearl", "apple"); Output: Aapplele apple. echo ReplaceAll("A sugar apple is not an apple,", "apple", "Beet"); Output: A sugar Beet is not an Beet. echo ReplaceAll("Hello world!", "word", "planet"); Output: Hello world! (without using built-in function except strlen()) Thank you!

5th Jul 2017, 7:11 AM
Kamille Pilar
Kamille Pilar - avatar
2 odpowiedzi
0
@Maz
5th Jul 2017, 7:18 AM
Kamille Pilar
Kamille Pilar - avatar
0
@jay help pls
5th Jul 2017, 7:39 AM
Kamille Pilar
Kamille Pilar - avatar