Trouble echoing data - data being converted to 0

Posted by Haraldo on Stack Overflow See other posts from Stack Overflow or by Haraldo
Published on 2010-04-20T15:51:04Z Indexed on 2010/04/20 15:53 UTC
Read the original article Hit count: 222

Filed under:
|

Hi, I feel this is something to do with my httpd setup for apache. I'm using mod_rewrite if that helps but I think that only effects the url.

It seems when I output some data such as:

$sMessage = 'Error'; echo $sMessage;

It works fine but when I do this:

$sMessage = 'Error'; echo '

'+$sMessage+'

';

It returns 0. Very odd!

© Stack Overflow or respective owner

Related posts about php

Related posts about apache