in reply to Re: Scalar looses values outside foreach loop
in thread Scalar looses values outside foreach loop

Thanks for the quick reponse Corion!
Can I push these array entries in mysql table ?
I know for scalar it works, Also when I print array it shows output side by side even after provinding \n.
  • Comment on Re^2: Scalar looses values outside foreach loop

Replies are listed 'Best First'.
Re^3: Scalar looses values outside foreach loop
by Corion (Patriarch) on Dec 02, 2010 at 10:08 UTC

    What do you mean by "Can I push these array entries in mysql table ?" ? Do you want to write the information into a Mysql database table? If so, you need to write them one by one.

    For outputting the array, you can either interpolate it as I showed you, or print it item by item, as I also showed you.