Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24166 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66632 invoked by uid 1010); 20 Jun 2006 23:22:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66616 invoked from network); 20 Jun 2006 23:22:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2006 23:22:08 -0000 X-PHP-List-Original-Sender: pollita@php.net X-Host-Fingerprint: 65.111.164.201 danica.alphaweb.net Linux 2.4/2.6 Received: from ([65.111.164.201:54877] helo=danica.alphaweb.net) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id AE/9F-25433-E1388944 for ; Tue, 20 Jun 2006 19:22:07 -0400 Received: from talos.alphaweb.net ([69.12.155.129] helo=OHRLVN4523SG) by danica.alphaweb.net with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.50) id 1FspXN-0001XJ-Uu; Tue, 20 Jun 2006 19:21:38 -0400 Message-ID: <001401c694c0$58809010$88051fac@OHRLVN4523SG> To: Cc: References: <200606210111.12187.lists@block-online.eu> Date: Tue, 20 Jun 2006 16:21:54 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Subject: Re: Looking for an explanation From: pollita@php.net ("Sara Golemon") > print ($life = "hard") -1; > Store "hard" in $life, Substract 1 from the result of that assignment ("hard") "hard", when used in a string context is casted to int (0) 0 - 1 == -1 Output result of subtraction (casted to string): "-1" > print "\nlife: {$life}\n"; > Concatenate "\nlife: " with contents of $life ("hard") and concatenate that with "\n" Output the result of concatenation -Sara