Hi
Some time ago I noticed at www.php.net, if memory serves me right, a function that demonstrated storing of instances of classes, and then 'extrating' the string returned the original object with all the variables set. Now, let's assume these functions were foo() and bar():
class smu {
var $x = "";
function setX($s)
{
$x = $s;
}
function getX()
{
return $x;
}
}
$ravensen = new smu();
$ravensen->setX("Blah");
pg_exec(1, "INSERT INTO Temp VALUES ('". foo($ravensen) ."')");
$r = pg_exec(1, "SELECT * FROM Temp");
$ravensen = bar(pg_result($r, 1, 1));
print($ravensen->getX()); // returns "blah"
So, can anyone tell me the names of these functions, or was that just a dream ?
Ciao!
Tolli