I use preg_match_all($pattern, $string, $matches)
regularly on data, and basically, I always need to remove either £0.00 or $0.00 or €0.00 from the array should it be in there.
I never know the position within the array that it will be in, if at all.
I've tried unset($matches['£0.00'])
and unset($matches[0]['£0.00'])
but didn't work
Also, can it be done without using the actual currency symbol and maybe regex \p{Sc}
So, summary, I have an array of numbers with currency symbols, and need to remove any zero entries.
sample array:
Array ( [0] => Array ( [0] => £18.99 [1] => £0.00 [2] => £0.00 [3] => £0.00 ) )
Is this possible?