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
Post a Comment