11-29-2008, 03:47 AM
|
#5 (permalink)
|
|
The Addict
Join Date: Apr 2008
Posts: 200
Thanks: 18
|
have it this way.
PHP Code:
<?php
echo "Testing " . (1 + 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.
|
|
|
|