I am using preg_match_all to build the array for shortcodes and it works fine but it also returns arrays with empty values see here please
Using this match witch I am sure is casuing the extra empty arrays
#\[link(.*?)link\=\"(.*?)\"(.*?)text\=\"(.*?)\"\]#e
How can I clear those. I tried array_filter but it did not work.
Thank you!