I am print an string as below
Code:
echo "&words=".$rs['pw']."&";
Output:
&words=Help|Good
Notice that the last &
is not printed.
But when I add a space character after &
then it gets printed as below
Code:
echo "&words=".$rs['pw']."& ";
Output:
&words=Help|Good&
Now &
is printed.
Why its happening and whats the reason for this behavior?