Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- testing for array of empty values


sssweb - 4:50 pm on Jan 19, 2012 (gmt 0)


Is there an easy test to see if an array has only empty values?

empty($x) doesn't work for: $x = array('',' ','');

This works, but I'm looking for something simpler:

if ( !trim(implode($x)) )...


Thread source:: http://www.webmasterworld.com/php/4408603.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com