Playing with the list command
the following demonstrates the output from the print_r sttm:
Array
(
[0] => large
[1] => blue
[2] => 12
)
display the array after the sort:
Array
(
[0] => blue
[1] => large
[2] => 12
)
firstvalue: blue
secondvalue: large
Trying the extract command using another array named shirtInfo2
size is large; color is blue; cost is 12
Trying the extract command using another array named shirtInfo3
and formatting the cost
size is large; color is blue; cost is 12.00