Answer the question
In order to leave comments, you need to log in
Curl and file_get anomalies, zero is 4 characters?
I'll try to state the essence of the question
. I make a curl request for the file from which I make a request, I give the answer exit ('0');
Further I consider the received result through echo strlen($data_y); The result is 4 , immediately the thought that something else comes there, and not zero in the line. I check:
echo "<pre>";
echo strlen($data_y);
echo "<br>";
print_r($data_y);
echo "<br>";
var_dump($data_y);
4
0
string(4) "0"
1
0
string(1) "0"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question