Thanks Guys!!
With str_replace i already figure it out like this
$string = "%s% % % sent you a Mystery Gift with";
$possibleSearch = array("% %","%% %","% %%");
$possibleValue = array("%%","%%%","%%%");
$newString = str_replace($possibleSearch,$possibleValue,$string);
But really i need it with reg_replace function.
Any answer appreciated!!!
Thanks in Advance
I have a string like below:
I want to remove white spaces between % (percent) sign only by using regular expression so that string will look like
Thanks in Advance
Hi Rommeo,
you can try this
$boxitem = 1;
$query = "SELECT * FROM table_user WHERE shoppingbox REGEXP '^$boxitem | $boxitem$| $boxitem ' OR shoppingbox =$boxitem";
Suresh
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.