Which code would you use to print all the elements in an array called $cupcakes?

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
  • all of the answers
  • print_r($cupcakes);
  • var_dump($cupcakes);
  • foreach($cupcakes as &$cupcake) echo $cupcake;
0/5 (0 Reviews)

Like this article?

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Related Posts