Tuesday, 4 September 2012

what is the return value of this substr function? <?php $rest = substr("abcdef", -1); $rest = substr("abcdef", 0, -1); ?>

A. f,abcde
B. a,fedcb
C. b,abcdef
D. a,abcde

Ans: A

No comments: