I have a PHP socket connection. I send a request and receive its response. The response is in xml format and contains '<'. I want to concatenate strings and build one string of complete response. But when I put '<' at the beginning of string the whole string becomes null:
$s1 = 'hello';
$s2 = '<';
$s = $s2.$s1;
echo 's1: '.$s1.' s2: '.$s2.' s: '.$s;
output:
s1: hello s2: < s:
What should I do?
<is sent correctly to the browser, then learn that a web browser specifically looks for a<character when it receives what it is told is html markup