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

Advertisement

  • all of the answers
  • print_r($cupcakes);
  • var_dump($cupcakes);
  • foreach($cupcakes as &$cupcake) echo $cupcake;
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend