From a46004984a120f5bf40d08c0060af629936172d5 Mon Sep 17 00:00:00 2001
From: "Christian W. Zuckschwerdt" <christian@zuckschwerdt.org>
Date: Tue, 24 Oct 2023 11:20:42 +0200
Subject: [PATCH] minor: typos in php example

---
 examples/rtl_433_http_stream.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/rtl_433_http_stream.php b/examples/rtl_433_http_stream.php
index b62db9fc..98011692 100644
--- a/examples/rtl_433_http_stream.php
+++ b/examples/rtl_433_http_stream.php
@@ -45,21 +45,21 @@ WantedBy=multi-user.target
 //$needle in $haystack
 function str__contains($haystack,$needle)
 {
-  return (strpos($haystack, $needle) !== false)
+  return (strpos($haystack, $needle) !== false);
 }
 
 
 //main
-$adr  = "127.0.0.1";
+$addr  = "127.0.0.1";
 $port = "8433";
-$url  = $sdr . ":" . $port . "/stream";
+$url  = $addr . ":" . $port . "/stream";
 
 $fp = stream_socket_client("tcp://" . $url , $errno, $errstr, 70);
 if (!$fp) {
     //optional error output
     //echo "$errstr ($errno)<br />\n";
 } else {
-    fwrite($fp, "GET / HTTP/1.0\r\nHost: " . $adr . "\r\nAccept: */*\r\n\r\n");
+    fwrite($fp, "GET / HTTP/1.0\r\nHost: " . $addr . "\r\nAccept: */*\r\n\r\n");
     while (!feof($fp)) {
         $line = fgets($fp, 1024);
         //time is available in all received records, that is the filter word