nerdexam
Zend

ZF-100-500 · Question #163

ZF-100-500 Question #163: Real Exam Question with Answer & Explanation

Sign in or unlock ZF-100-500 to reveal the answer and full explanation for question #163. The question stem and answer options stay visible for context.

Question

Consider the following XML file: <?xml version="1.0" encoding="ISO -8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <title> SimpleXML Example</title> </head> <body> <h1> </h1> </body> </html> Which of the following statements will display the HREF attribute on the anchor tag if the SimpleXML object is $sxml?

Options

  • A$sxml->body->h1->a->href
  • B$sxml->body->h1->a<href>
  • C$sxml->body->h1->a['href']
  • D$sxml->h1->a->href

Unlock ZF-100-500 to see the answer

You've previewed enough free ZF-100-500 questions. Unlock ZF-100-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full ZF-100-500 Practice