![]() |
PHP - How to replace a particular word in a string variable
Say i have a variable called $booktitle which is a string containing titles of children's story books.
In this string, i can have values like 'Instock - The Lord of the Rings' 'Instock - The Lord of the Rings vol.2' and so on. However i want to print the variable without the instock wording. Hence how can i replace it such that when printing out the list, it would ignore the instock wording and in its place put 'It's available in stores!' instead ? |
PHP Code:
|
Fantastic Dean, works fine.
Once again, thanks a million :D |
No problem :)
|
All times are GMT. The time now is 03:23 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|