National_Instruments
200-500 · Question #167
200-500 Question #167: Real Exam Question with Answer & Explanation
The correct answer is B. explode("-", $test);. See the full explanation below for the reasoning.
Question
You have a variable $test that contains sub-strings divided by a dash ("-"). How can you put every sub-string into an array element easily?
Options
- Aextract($test, "-");
- Bexplode("-", $test);
- Cto_array($test, "-");
- Dexplode($test, "-");
Community Discussion
No community discussion yet for this question.