Jump to content

Getting an array into a variable


40esp

Recommended Posts

im basically trying to achieve this:

 

 

$how_many = count($_POST["select"]);

$post = $_POST['select']; ?>

$values = for ($i=0; $i<$how_many; $i++) {echo $post[$i]." ";}

 

But its not possible, im trying to push array values into one string, and store it in a variable for later use in my script.

 

How would I fix it up to work like this?

Link to comment
https://forums.phpfreaks.com/topic/109506-getting-an-array-into-a-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.