"Rowan Collins" wrote in message
news:CALKiJKqpk7X0yn0d_PWOKU1S7m156dF7865aLCP5dLF=q39...@mail.gmail.com...
On 18 January 2015 at 11:28, Tony Marston <tonymars...@hotmail.com> wrote:
"Andrea Faulds" wrote in message news:23490588-0131-4B0F-A7AA-
c9c8c7666...@ajf.me...
<<snip>>
You are forgetting one minor thing - an object may be instantiated from a
piece of procedural code. In fact the very first object can only be
instantiated from procedural code.
I'm not sure what you mean by the second sentence here; which is the "very
first object"?
Before you can use an object you must instantiate it using "$object = new
<classname>". For the very first object this line can only be performed in
procedural code. It cannot be perform within the first object as the first
object must be instantiated externally.
--
Tony Marston
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php