Câu 11: 200-550: Zend Certified PHP Engineer
Consider the following two files. When you run test.php, what would the output look like? test.php: include "MyString.php"; print ","; print strlen("Hello world!");MyString.php:namespace MyFramework\String;function strlen($str){return \strlen($str)*2; // return double the string length}print strlen("Hello world!")
Nội dung câu hỏi
Consider the following two files. When you run test.php, what would the output look like? test.php: include "MyString.php"; print ","; print strlen("Hello world!");MyString.php:namespace MyFramework\String;function strlen($str){return \strlen($str)*2; // return double the string length}print strlen("Hello world!")
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. 12,12
- B. 12,24
- C. 24,12 — đáp án hiện tại
- D. 24,24
- E. PHP Fatal error: Cannot redeclare strlen()
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.