Re: [PHP] check if any element of an array is not "empty"



but I was thinking if there is the function does that.

array_filter(). Note this:

"If no callback is supplied, all entries of input equal to FALSE (see converting to boolean) will be removed."

http://uk3.php.net/manual/en/function.array-filter.php

--
Richard Heyes

+----------------------------------------+
| Access SSH with a Windows mapped drive |
| http://www.phpguru.org/sftpdrive |
+----------------------------------------+
.



Relevant Pages

  • Re: Differences between VB6 and VB.Net causing problem
    ... It is 16 bit in Vb6. ... Take note, I did not say a Boolean is 32 bits, I said True is 32 bits. ... they use -1 again when converting to a Long type. ... Dim bln As Boolean ...
    (microsoft.public.vb.general.discussion)
  • Re: Calling third-party APIs
    ... new model is much more complex and I am having converting the API calls to ... The call to turn on the receivers Power is:- ... ByVal YesNo As Boolean) As Boolean ...
    (microsoft.public.vb.general.discussion)
  • Re: convert tinyint to boolean
    ... to see a cast exception, because if the range 0-255 is too small, ... then converting it to a boolean is most likely wrong! ... I would change a column from TINYINT to INT if I found out it speeded up processing, for example, which could be for any number of reasons (row alignment, preventing conversions when mixed with other data, the phase of the moon). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Differences between VB6 and VB.Net causing problem
    ... Take note, I did not say a Boolean is 32 bits, I said True is 32 bits. ... they use -1 again when converting to a Long type. ... I have followed the suggestion of changing the booleans to Long, ... receive an error message "Function call on left hand side of ...
    (microsoft.public.vb.general.discussion)
  • Re: convert tinyint to boolean
    ... then converting it to a boolean is most likely wrong! ... a fundamental change of type makes cast better than the Convert. ... It should fail because otherwise we might silently accept bad data, ...
    (microsoft.public.dotnet.languages.csharp)