Friends, I immediately ask you not to judge strictly, I'm just learning.
The front is a clear task:
1) There is a script that sends a GET request to my server. In response to this request, I have to return an array of strings in the following format:
line number; Username; password; 0x0A - this is the end of each line, as I understand it?
The question is how to do this? I tried this:
echo "1;D;".date("dmY H:i:s")."\n"; echo "2;C;".$data_card['code'].";0; ;".mb_substr($data_card['owner'], 0, 16, "UTF-8").";0;01.12.2300\n"; echo "3;L;1;26.10.2016;30.10.2016;777;".$data_card['dt'].";5.00;26.10.2016 09:01:23\n"; echo "4;t;1\n"; echo "5;e;2\n"; echo "6;#"; but as I understood it, I displayed pure strings on the screen and did not return an array of strings, right? I have a task to return an array of strings so that the script would process it. how the script is implemented and what's inside is not clear, this information is not available