php - Foreach through an array without looping -
in following code:
<?php foreach($this->params $key=>$val) { $this->rawrequest .= "&$key=$val"; } ?>
how $this->params
$key=>$val
without looping?
i agree @rjdown simplest way create query string based on array keys , values http_build_query
$buildqstring = http_build_query($this->params);
Comments
Post a Comment