Jake,

Thank you! That worked like a charm!

Jeff
===========================

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Jake McGraw
Sent: Tuesday, August 21, 2007 10:01 AM
To: NYPHP Talk
Subject: Re: [nyphp-talk] PHP 5.3 Problem - Object Creation problem


Create a public __toString() function within your Database class. It can be
something as simple as:

public function __toString() {
  return 'Object';
}

This is a new as of 5.2 - for some reason they've removed implicit
object-to-string conversion. You must provide explicit __toString if you're
printing or concatenating your objects.

- jake


_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to