Code:
$aReturn[$i] = $aSQL['firstname'].' '.$aSQL['lastname'].(($aSQL['credentials'] != '') ? ', ' : '').$aSQL['credentials'];
$aReturn[$i][0] = $aSQL['id'];
$aReturn[$i][1] = $aSQL['firstname'];
$aReturn[$i][2] = $aSQL['lastname'];
$aReturn[$i][3] = $aSQL['credentials'];
returns:
Array ( [0] => 2DSPie Schulze, PT [1] => 3JKPce Keeley, PT [2] => 4MHPha Holmes, PT [3] => 5SSPn Swatek, PT [4] => 6YPPli Perez, PT )
When I expected it to return:
Array ( [0] => Debbie Schulze, PT [1] => Janice Keeley, PT [2] => Marsha Holmes, PT [3] => Susan Swatek, PT [4] => Yoheli Perez, PT )
Plus, 4 other dimensions of the array containing the other data.
It looks like it's putting the first letter of each of those variables into character location [0], [1], [2], [3] in the first dimension.
What the heck is that?
Keith Davis
MCSA, A+, N+, Guru+, Geek+, Child of God++++++
Love and Service