Hey Guys,

anyone who studied php anatomy,may explain the weired behavior.
here is the output:




# $add = $obj->getNum()+1 #
# $add = 10               #

===========================

Returned Values from a Method:

---------------------------

Calculation for : '15 asdasd'.$obj->getNum()+1
 = 16
Calculation for : 'asdasd 15'.$obj->getNum()+1
 = 1
Calculation for : '15'.$obj->getNum()+1
 = 160 <<=== NOTE1!

===========================

Variable Calculation: Get Ready for the suprise :)

---------------------------

Calculation for : '15 asdasd'.$add+1
 = 16
Calculation for : 'asdasd 15'.$add+1
 = 1
Calculation for : '15'.$add+1
 = 1511 <<=== Note 2!

===========================

Propetry Values:

---------------------------

Calculation for : '15 asdasd'.$obj->b+1
 = 16
Calculation for : 'asdasd 15'.$obj->b+1
 = 1
Calculation for : '15'.$obj->b+1
 = 160


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Jordan PHP Users Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/JoPHP
http://Jolug.org/
-~----------~----~----~----~------~----~------~--~---

Reply via email to