Q:

Write a PHP program to replace a string "Python" with "PHP" and "Python" with " PHP" in a given string

0

Write a PHP program to replace a string "Python" with "PHP" and "Python" with " PHP" in a given string.

Input: English letters (including single byte alphanumeric characters, blanks, symbols) are given on one line. The length of the input character string is 1000 or less.

Pictorial Presentation:

 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Sample Input:
PHP is popular than Python

Sample Output:

Python is popular than PHP.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now