<?php $params = [ 'param1' => 1, 'param2' => new Class { public function __toString():string {return 'test';} } ]; echo http_build_query($params) . PHP_EOL; foreach ($params as $k => &$v) $params[$k] = (string) $v; echo http_build_query($params) . PHP_EOL;
You have javascript disabled. You will not be able to edit any code.