You are here: string manipulation « PHP Programming Language « IT news, forums, messages
string manipulation

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация