View Single Post
  #10  
Old 03-01-2011, 10:14 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 590,437
Hall of Famer is on a distinguished road
Default

Well a return value is quite simple to understand. Assume you have a math function f(x) = x^2 - 4x + 3, the x value is the input value, while the f(x) value is the return value. Print and echo are technically PHP functions, but of special type since you do not need to write a parenthesis to enclose anything inside these functions. Moreover, these functions' return values are themselves. This is pretty much like f(x) = x in math, in which f(x) has exactly the same value as x.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote