Basically, any time an instance of a class, for instance when it is passed to echo, needs to return a string for whatever reason, _toString is a method you can define in the class definition as a way to determine how your class will return a string.For instance, if you have a class named person with two attributres, first_name and last_name.