Ask for an error Warning: rawurlencode () Warning, arraygivenWarning: rawurlencode () Warning, Warning $ normalizedarray (); ask for an error Warning: rawurlencode () expects parameter 1 to be string, array given
Warning: rawurlencode () expects parameter 1 to be string, array given
PHP code
$normalized = array(); foreach($params as $key => $val) { $normalized[] = $key."=".rawurlencode($val); }
Parameter $ params is
Array
& Apos; auto & apos; = & apos; int 123 & apos;
'On' => string '123' (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 pick up/59.00/1 @ '(length = 68)
------ Solution --------------------
Rawurlencode () expects parameter 1 to be string, array given
Rawurlencode () requires a string-type parameter, but you pass an array