I am trying to print the following statement:
print false . "\n" . true . "\n";
echo false . (bool)false . "\n" . true . "\n";
print "0" . "\n" . true . "\n";
The result that I am getting is just “1 1 0 1”.
The expected result is:
0
1
0
1
0
1
I am using PHP 5.4.3 MSVC9 x64
Can someone please explain why and how I can make it print the correct way?
This should do the trick. Use an array.
Output :
false true