php - How can I get array from GET request? -


i have trouble: have url of view:

?materials=1&materials=2&materials=3&materials=4&materials=5&materials=6

how can in array throw yii mechanism?

yii::app()->request->getparam('materials') 

not working

$_get['materials'] 

too not working

url static , can not change

this url created https://github.com/mikhus/jsurl plugin

php automatically parses parameter array, if ends []. (i.e. ?materials[]=1&materials[]=2&materials[]=3&materials[]=4&materials[]=5&materials[]=6) otherwise can parse query string manually solve issue. @ this


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -