Php Objective Questions with Answers for written test exams 76

Question 76
Assume $comment contains a string.Which PHP statement prints out the first 20

characters of $comment followed by three dots (.)?

A. print substr($comment, 20) . ‘...‘;

B. print substr_replace($comment, ‘...‘, 20);

C. print substr($comment, 20, strlen($comment)) . ‘...‘;

D. print substr_replace($comment, 20, ‘...‘);
Answers 76


B

  







Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---