I'm trying to write a line that prints
<PT:Semi-Annual>
When I put:
echo " <PT:Semi-Annual> ";
or
echo " <PT:Semi-Annual> ";
I seem to end up with: <PT:Semi- Annual>
Any help would be appreciated.
Thanks
oaehm strange try single quotes instead of double, to prevent the parser from interpreting special chars...
thanks for the suggestion. Do you have any others? it didn't seem to work
hmmm strange i can not reproduce your problem... works fine for me...possible invisible characters in your code?! can you post the whole code? bye, niko
Not sure, but this might work as a workaround:
echo preg_replace('/[\n\r]*(\-)[\n\r]*/', '$1', '...your stuff here');
That will strip out any occurrences of embedded returns right before or after the hyphen.
Phil