fork download
  1. <?php
  2.  
  3. $encodedIp = urldecode('127.0.0.1');
  4. $url = "/sensor/read/$encodedIp";
  5.  
  6. echo $url;exit;
  7. $array=[1,2,3,4,5,6];
  8. foreach($array as $key=>$value)
  9. {
  10. if($key<3){
  11. $array[]=$value;
  12. unset($array[$key]);
  13. }
  14. print_r($value);
  15. echo "<br/>";
  16. }
  17.  
  18. ?>
Success #stdin #stdout 0.02s 26012KB
stdin
Standard input is empty
stdout
/sensor/read/127.0.0.1