View Single Post
  #2  
Old 15th December 2021, 20:21
MicroMonkey's Avatar
MicroMonkey MicroMonkey is offline
Senior Member
 
Join Date: Jun 2016
P2P
Posts: 52
Default
we eliminated the need for thisEach()....(thanks to m-jay). You can check github for updates if it helps your project along. Thanks for the code. https://github.com/MicrosoulV3/TorrentTrader-v3. Feel free to help out if you want to, over at torrenttrader.uk. New ideas are always good. Hope you have a good day :)
Quote:
function read () {
$ret = "";
if (count($this->params)) {
reset($this->params);
for ($i = 0; $i < strlen($this->query); $i++) {
if ($this->query[$i] == "?") {
$val = current($this->params); //new var to replace thisEach
next($this->params); //new var to replace thisEach
$ret .= $val;
} else {
$ret .= $this->query[$i];
}
}
reset($this->params);
} else {
$ret = $this->query;
}
return $ret;
}
__________________
More torrenttrader stuff at https://torrenttrader.uk

Last edited by MicroMonkey; 15th December 2021 at 20:41.
Reply With Quote