If I explode it I'm left with thousands of empty (null?) elements in the array.
I can take the spaces out before exploding by doing:
Expand|Select|Wrap|Line Numbers
- $spacesCount= substr_count($ztagsdata," ");
- $spacesCount=$spacesCount/2;
- echo $spacesCount;
- for ($i=1;$i<$spacesCount;$i++)
- {
- $ztagsdata= str_replace(" ", " ", $ztagsdata);
- }
any suggestions how to get out the extra spaces (and still leave a single space)? Or should I go ahead and explode into an array and then delete the null (empty?) values--which I don't know how to do. I know pop and push but can't find how to delete a middle element....
any suggestions are welcomed.