Hi Folks,
My website currently sets $model variable as follows:
$model = $_POST['model'];
I am trying to find a way to replace a string only if it equals a certain value such as IF $_POST['model'] = "HP OfficeJet Pro:9015e" then replace that with "HP9015e"
There may be need for some more replace options in the future so I would like to ensure whatever direction I take with this, that it has the ability to add some more.
Is anyone aware of any such examples of what I am trying to achieve? Most of my problem is I don't know what I am searching for 🙂
Thanks