php - Why are single quotes in my $_POST associative array -


am writing code form , use php associative arrays users input. using code this:

<input type="text" name="field['username']" id="username" class="editor" /> 

but when use foreach statement loop through array elements:

foreach ($arrinputs $key => $input){  echo $key.'<br/>'; } 

it includes single quotes in associative array's index , like: 'username' (with quotes) when echoing $key in foreach loop..i don't need single quotes help?

you need remove quotes form element, should be:

<input type="text" name="field[username]" id="username" class="editor" /> 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -