NYCPHP Meetup

NYPHP.org

[nycphp-talk] overriding strval(x)?

jon baer jonbaer at jonbaer.net
Thu Jan 22 22:26:36 EST 2004


greetings, basic question ...

when oo-ing your code is there anyway to override the strval() function if
its being performed on your object?  in java its likened to having a known
function (toString()) but if someone decided to debug an object in php can
they do something similar to the same so u can see ur variable sets?

strval($myObject)

"x -> foo, y-> bar"

- jon




More information about the talk mailing list