View Full Version : Better to return a value or echo it

10-07-2010, 08:12 PM
I am trying to find out if it is better to echo a value from a php script that is being called by an ajax function, or return the value ("return blah;"). I know that your not suppose to return or echo any html from the php script. But, this is my first time working with ajax so any help on this matter is great.