| 
 Posted by Chung Leong on 05/27/06 20:37 
Jerry Stuckle wrote: 
> Not if you understand precedence.  Remember, '.' has a high precedence.  The 
> following all work: 
 
The . operator has the same precedence as + and -, the wisdom of which 
is debatable. I don't think it's intuitive that 
 
      echo 2+2 . ' = 2 + 2'; 
 
prints out '4 = 2 + 2' while 
 
      echo '2 + 2 = ' . 2+2; 
 
prints out 4.
 
  
Navigation:
[Reply to this message] 
 |