Posted by ross.oneill on 09/03/07 23:43
Hi,
Basically I want to do a subtract operation then append the result to
a string. When I execute the script below my output it "-1". I want
my output to be "this is a test 4" Any ideas what I am doing wrong?
Thanks a bunch
-R
<?
$str = "this is a test" . (int)5-1;
echo $str;
?>
Navigation:
[Reply to this message]
|