I have to use php at work and it seems to lack an ordinary compound structure like Pascal and C have, so I thought perhaps I'd use an object instead. Here's my first crack at some OOP in php, which yields the following...
OOP test
Constructing an instance of asbtest
My Donkey is UnwellIn method asbtest::vet
My Donkey is HealthyJob done!
I wonder if objects get automatically destroyed when the php interpreter falls off the end of the source. Thanks to nils_ and rindolf from Freenode's #webdezvous channel and AcidReign from ##php for important help with this.
0 comments:
Post a Comment