PrepAway - Latest Free Exam Questions & Answers

Which of the following possibilites work?

You want to access the 3rd character of a string, contained in the variable $test. Which of
the following possibilites work? (Choose 2)

PrepAway - Latest Free Exam Questions & Answers

A.
echo $test(3);

B.
echo $test[2];

C.
echo $test(2);

D.
echo $test{2};

E.
echo $test{3};


Leave a Reply

Your email address will not be published. Required fields are marked *