<?php
$url = "/sensor/read/$encodedIp";
$array=[1,2,3,4,5,6];
foreach($array as $key=>$value)
{
if($key<3){
$array[]=$value;
}
echo "<br/>";
}
?>
PD9waHAKCiRlbmNvZGVkSXAgPSB1cmxkZWNvZGUoJzEyNy4wLjAuMScpOwokdXJsID0gIi9zZW5zb3IvcmVhZC8kZW5jb2RlZElwIjsKCmVjaG8gJHVybDtleGl0OwokYXJyYXk9WzEsMiwzLDQsNSw2XTsKZm9yZWFjaCgkYXJyYXkgYXMgJGtleT0+JHZhbHVlKQp7CglpZigka2V5PDMpewoJCSRhcnJheVtdPSR2YWx1ZTsKCQl1bnNldCgkYXJyYXlbJGtleV0pOwoJfQoJcHJpbnRfcigkdmFsdWUpOwoJZWNobyAiPGJyLz4iOwp9Cgo/Pg==