The app that I'm working on returns and multi-dimensional, associative array that looks like this:
Now, that's what you're seeing in MSSQL Studio. On the PHP side, I've got this going on:
$accountactive = Accounts::checkStatementWorthy($accountid);
echo "number of worthy accounts: ";
When I do "count($accountactive)," I get 42. 42 is the number of "columns" in the array, which you can see in the screenshot (AccountID, PracticeID, etc).
What I want to test is the fact that I've got more than just a "truth-y" array. I want to know that I've got one row with values in most, if not all, of the columns. And forgive me for my verbiage. I realize that with arrays, you're looking at indices etc., but, for the sake of clarity, I wanted to use spreadsheet-esque type terminology.
Even if I did a foreach and tested for the presence of $I[AccountID], that would could work, I suppose. But I wanted the best and most elegant approach.
What do you think?