Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend 200-710 Exam - Topic 8 Question 32 Discussion

Posted by Iluminada on Jun 28, 2022 at 10:45 PM

How many elements does the array $pieces contain after the following piece of code has been executed?

$pieces = explode("/", "///");

Suggested Answer: C

Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
JO
Joaquin 1 year ago
Yup, 4 is right!
LO
Louann 1 year ago
Definitely 4, those extra slashes count as empty strings.
DE
Devora 1 year ago
Wait, how can there be 4? That seems off.
KR
Kristin 1 year ago
I thought it would be 3, but I guess it’s 4!
EL
Elina 1 year ago
It contains 4 elements.
TO
Tori 1 year ago
I feel like I’ve seen something similar before, and I think the answer is 4 because it counts the empty strings between the slashes.
AJ
Aja 1 year ago
I’m a bit confused. I thought it would return 3 because there are three slashes, but I guess it could be more due to the empty strings.
PE
Penney 1 year ago
I remember a practice question where explode returned an array with empty elements for consecutive delimiters. So, I think it might be 4 elements here.
KI
Kimberlie 1 year ago
I think the explode function splits the string by the delimiter, but I'm not sure how it handles consecutive delimiters.
RE
Rebeca 1 year ago
I'm not sure about the "prevent code changes" option - that seems a bit odd. I'll need to think through the implications of that one.
LE
Lenna 1 year ago
I think the issue might be related to the mismatch in interfaces, like option A mentions the PE-facing interface, but I'm not completely sure.
JE
Jean 1 year ago
Hmm, I'm not sure. Letting students use any computer as needed could work, but it might get chaotic. I'll have to think this through carefully.
MA
Malinda 1 year ago
I think the main concern is definitely about control over the devices. Corporations can't manage personal devices as well as their own.
0/2000 characters

Save Cancel