Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

Object iteration. class A { public $v1 = 'a'; protected $v2 = 'b'; private $v3 = 'c'; var $v4 = 'd'; } $a = new A(); foreach ($a as $k => $v) { echo "$k => $v\n"; } What is the output of the foreach loop?

v1 => a v2 => b v3 => c
v1 => a v4 => d
v1 => a
v1 => a v2 => b
You cannot iterate over an object's attributes.
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon