Hello!
I am looking for a way to include a file in PHP, but replace some of the text of the include with different text.
For example, if include.php contains the text "I like apples. Yum!", I want to be able to replace any mention of the string "apples" with "oranges" before it is included in the page.
Is there a simple way to do this?
Thank you!
I am looking for a way to include a file in PHP, but replace some of the text of the include with different text.
For example, if include.php contains the text "I like apples. Yum!", I want to be able to replace any mention of the string "apples" with "oranges" before it is included in the page.
Is there a simple way to do this?
Thank you!