Elance Exams Answers PDF file

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

What is the best way to iterate and modify every element of an array using PHP 5?

foreach($array as $key => $val) { /* ... */ }
You cannot modify an array during iteration
for($i = 0; $i < count($array); $i++) { /* ... */ }
while(list($key, $val) = each($array)) { /* ... */}
foreach($array as $key => &$val) { /* ... */ }
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon