The HTML form that populates $_POST:


print_r($_POST) looks like: Array ( [User] => Array ( [\'Username\'] => Test [\'UserID\'] => 1 ) [update] => update ) print_r($User) looks like: Array ( [\'Username\'] => Test [\'UserID\'] => 1 ) From inside a function: called with $obj->myfunc($User) function myfunc($user) foreach($user as $key=>$value) { print "$key=>$value
"; } } produces: \'Username\'=>Test \'UserID\'=>1