Results 1 to 3 of 3
July 10th, 2008, 10:51 AM #1Ok I give up
I am trying to replace (actually delete) a string in a product name. Here is what I have.
$string = $iName;
$pattern = '/MyTargetWord/';
$replacement = ''; // this is two single quotes
$iName = preg_replace($patterns, $replacement, $string);
The above code is results in an empty string error.
Any help is greatly appreciated.Thanks,
July 10th, 2008, 10:54 AM #2Originally Posted by itsupportnotes
Last edited by knight01; July 10th, 2008 at 10:55 AM. Reason: bolding doesn't work in php codeSomeday starts today
July 10th, 2008, 10:57 AM #3Originally Posted by knight01
Yup that was it. Glad I kinda know what I was doing but could smak myself for the oversite.
Featured: When You Want To Give UpBy Can-Do Attitude in forum Newbie Affiliate FAQs & Helpful ArticlesReplies: 17Last Post: March 31st, 2015, 09:34 AM
By zboostnet in forum ShareASale - SASReplies: 12Last Post: August 15th, 2006, 05:45 AM
By sa00 in forum Introduce YourselfReplies: 16Last Post: November 8th, 2004, 05:57 AM
By Heyder in forum Search Engine OptimizationReplies: 13Last Post: September 25th, 2002, 09:25 PM