Hi there,
If you can see a problem in the coding or may know why I am getting this error, could you help me please.
Basically, I have the following code just before a loop (while)
$parsesearch = array ('-1');
$parsereplace = array ('Unlimited');
(will be having more than just this single item to replace soon)
I then have the loop with the following code in
$space[$k] = preg_replace($parsesearch, $parsereplace, $plan['space']);
and I get the following error
Warning: No ending delimiter '-' found in ....
I have tried things like making sure the arrays (parsesearch etc) are allowed by using the global function within the loop, but I still get the error, after trying many combinations and attempts to fix it myself.
Many thanks for any help,
Ben