The first tests for elements in the array. There are elements (there's one) in it, hence it is tested true.
The second tests the first element for truth. It is a "0", hence it's tested false.
In reply to Re: Testing for Truth
by Happy-the-monk
in thread Testing for Truth
by xonker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |