How to get the text which will show the page?

Good morning, I can not understand how to make the analogue of the function from C# - WebClient.DownloadString(Uri) in PHP, you need to in the variable $var brought the value which will show the page 127.0.0.1/GetValue.php?uid=10

Thank you.
July 8th 19 at 15:45
1 answer
July 8th 19 at 15:47
Solution
$url = "127.0.0.1/GetValue.php?uid=10";
$var = file_get_contents( $url );


php.net/manual/ru/function.file-get-contents.php
Thank you!! - Dovie.Schroeder commented on July 8th 19 at 15:50

Find more questions by tags PHP