View Single Post
Old 11-29-2008, 03:47 AM   #5 (permalink)
zxt3st
The Addict
 
zxt3st's Avatar
 
Join Date: Apr 2008
Posts: 200
Thanks: 18
zxt3st is on a distinguished road
Default

have it this way.

PHP Code:
<?php

echo "Testing " . (2) . "34"

?>
I think one of the reason why it will displays 234 is because php reads each line from right to left. And "34" is a string, and when we try to concatenate 2 to 34, 2 will be included as a string also. And bear in mind that we can't do operations like addition, subtraction, etc both strings and integers right?

Im not quite sure about it, but maybe its one of the reason.
__________________
Serenity Project - 5% (Layout) - Ongoing....
Project Serenity Free Life!....
zxt3st is offline  
Reply With Quote