Jump to content

parsing a posting variable


jeff5656

Recommended Posts

I want to parse the following POSTed variable (notice that each element in this variable is separated by a semicolon and a space)

 

$variable = "201px; 169px; 110px; 114px; 142px; 43px; 112px; "

 

so that

$a="201px"

$b="169px"

 

etc

 

a) how do i do that

b) how do I do that if the number of elements to parse is NOT known?

 

If anyone knows the solution to a) but no tb) thats ok - I can try to figure out b once I underatand how to do a!

Link to comment
https://forums.phpfreaks.com/topic/279904-parsing-a-posting-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.