πŸ“Š PHP
Q. What is the result of the following PHP code?
Code:
<?php
    $names = array("Alex", "Bob", "Emily", "Ali");
    $res = array_slice ($names, 2);
    print_r ($res);
?>
  • (A) Array([0] => Bob [1] => Emily [2] => Ali)
  • (B) Array([0] => Ali [1] => Emily)
  • (C) Array([0] => Emily [1] => Ali)
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Array([0] => Emily [1] => Ali)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
175
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Pritvik
Publisher
πŸ“ˆ
85%
Success Rate