πŸ“Š PHP
Q. What does the PHP function substr() do?
  • (A) Returns a portion of a string
  • (B) Replaces a substring
  • (C) Splits a string into an array
  • (D) Joins array elements into a string
πŸ’¬ Discuss
βœ… Correct Answer: (A) Returns a portion of a string

Explanation: substr() returns part of a string starting at a specified position.

Explanation by: Rati Dubey
substr() returns part of a string starting at a specified position.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
80
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
99%
Success Rate