bccamp
Technical User
- Jan 20, 2005
- 69
I've got external website meta data that I'm trying to cull and insert into my db to make searchable. I'm running into a few issues with array_unique and trim.
The metadata has duplication that I'm trying to explode and remove with:
$meta=(explode(",", $meta);
$uniquemeta=array_unique($meta);
then I put into a loop with while, count, and variable $a:
$meta3=trim($uniquemeta[$a]);
I keep getting a Undefined offset error at the duplications. Any help would be appreciated, or another direction if there is an easier one to strip quotes, url's, and random #'s.
The metadata has duplication that I'm trying to explode and remove with:
$meta=(explode(",", $meta);
$uniquemeta=array_unique($meta);
then I put into a loop with while, count, and variable $a:
$meta3=trim($uniquemeta[$a]);
I keep getting a Undefined offset error at the duplications. Any help would be appreciated, or another direction if there is an easier one to strip quotes, url's, and random #'s.