Which of the following possibilites work?

Posted by: Pdfprep Category: 200-710 Tags: , ,

You want to access the 3rd character of a string, contained in the variable $test.

Which of the following possibilites work? (Choose 2)
A . echo $test(3);
B . echo $test[2];
C . echo $test(2);
D . echo $test{2};
E . echo $test{3};

Answer: B, D

Leave a Reply

Your email address will not be published.