请问一个异常Warning: rawurlencode() expects parameter 1 to be string, array given

WBOY
Libérer: 2016-06-13 10:12:05
original
2697 Les gens l'ont consulté

请教一个错误Warning: rawurlencode() expects parameter 1 to be string, array given
Warning: rawurlencode() expects parameter 1 to be string, array given

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$normalized = array();    foreach($params as $key => $val)    {        $normalized[] = $key."=".rawurlencode($val);    }
Copier après la connexion


参数$params为
array
  'auto' => int 123
  'on' => string '256855' (length=13)
  'ei' => string '' (length=0)
  'tm' => string '59.00' (length=5)
  'name' => string '' (length=0)
  'add' => string '' (length=0)
  'state' => int 1
  'list' => 
  array
  1 => string 'xxxxddewweew拾掇拾掇/59.00/1@' (length=68)

------解决方案--------------------
rawurlencode() expects parameter 1 to be string, array given
rawurlencode() 需要一个字符串类型的参数,你却传递了一个数组
Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!