I would like to remove spaces if they are shown on start or end of a name inside qotes. Let me explain more on example:
This is the result i have:
" HAIRDRESSER PERSON 1" Person one businesses
" HAIR STUDIO " Person two S.P.
" HAIRDRESSER PERSON 3 " - PERSON 3 S.P.
And this is what i'm trying to achieve:
"HAIRDRESSER PERSON 1" Person one businesses
"HAIR STUDIO" Person two S.P.
"HAIRDRESSER PERSON 3" - PERSON 3 S.P.
This is the code i'm working on:
$data[$num]['title'] = preg_replace(????????, "",$row->find('td',1)->plaintext);
If you have any better solution then preg_replace i'm open for it. Thank you guys in advance.