Exactly what you just did will work ...

<?php

  $c = 1;
  $a = $b = $c;

?>

$a, $b and $c all are 1 now.

--Joe


--
Joe Stump <[EMAIL PROTECTED]>
http://www.joestump.net
"Label makers are proof God wants Sys Admins to be happy."

-----Original Message-----
From: Andrew D. Luebke [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Assignment operator questions


Is it possible to do the following in PHP a = b = c;  Which in C, for 
instance would set b and a equal to c.  Thanks.

Andrew.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to