d.shankar Posted January 8, 2008 Share Posted January 8, 2008 I have an array such that it contains empty characters and numbers. like this.. the size of this array is 12 including the whitespaces... 1 2 3 4 5 6 7 8 What i need to do is to filter all the whitespaces and to reduce the array size to 8 like this 1 2 3 4 5 6 7 8 Can i get a generalised example ? Link to comment https://forums.phpfreaks.com/topic/84971-solved-filter-array-help/ Share on other sites More sharing options...
rajivgonsalves Posted January 8, 2008 Share Posted January 8, 2008 post your code I'll modify it Link to comment https://forums.phpfreaks.com/topic/84971-solved-filter-array-help/#findComment-433317 Share on other sites More sharing options...
d.shankar Posted January 8, 2008 Author Share Posted January 8, 2008 Hi rg..my problem got solved. I passed the array inside array_unique() and it got filtered. Sorry everyone. Link to comment https://forums.phpfreaks.com/topic/84971-solved-filter-array-help/#findComment-433329 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.