I am trying to get a simple two dimensional array set up such as:
$transactionType [0][] = array ('B', 'S', 'F', 'M', 'D', 'R', 'O');
$transactionType [1][] = array ('Boat purchase', 'Start up', 'Fee', 'Maintenance', 'Deposit from client', 'Rent', 'Other');
So that:
$transactionType [0][0] would return 'B'
$transactionType [1][0] would return 'Boat purchase'
$transactionType [0][1] would return 'S'
$transactionType [1][1] would return 'Start up' etc
The following works but appears a little messy to me. Is there is neater way of doing it?
$transactionType = array (array('B', 'Boat purchase'), array('S', 'Start up'), array('F', 'Fee'), array('M', 'Maintenance'), array('D', 'Deposit from client'), array('R','Rent'), array('O', 'Other'));