Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60409 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41317 invoked from network); 2 May 2012 03:46:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 May 2012 03:46:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=yader.hernandez@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yader.hernandez@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: yader.hernandez@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:34841] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/40-38165-F0EA0AF4 for ; Tue, 01 May 2012 23:46:24 -0400 Received: by obbuo13 with SMTP id uo13so400259obb.29 for ; Tue, 01 May 2012 20:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yIW1J1LBjiDEQ869gXgOFQFUMHxcFKGvjMTjLT8jOn0=; b=j4aZ/exROOpSIKpH8yZgn21MReEWsMp/LA6UcNO/05JHuVkfn0OZ5ABUFwDw+lT93q Smy5MFUmgjfwn+y49vewhJkzWusxwZkdtZXvcUSr9fSrp+NACM3sQVg++CT6kGRqVrP/ xFXoNhfbDpVsOhR5RwWOJskdymLmaJyhhrClBK1wL2dRrWAg7MfdY3BZOEIuqM07qnAI QSQBi5ey5lmqMrsZhkIY3d88CUBehaQ7cemVVzOHJPkCjdVztLIEdW60uSGehXhJDS+o D4HMfgOFYqnCDFINKbqf+ylDD+XsCB5H74K2rcRI/+/ptilbYA6kwULJ07UJrKT45jxO cE7g== MIME-Version: 1.0 Received: by 10.182.36.99 with SMTP id p3mr36633134obj.47.1335930380935; Tue, 01 May 2012 20:46:20 -0700 (PDT) Received: by 10.60.147.199 with HTTP; Tue, 1 May 2012 20:46:20 -0700 (PDT) Date: Tue, 1 May 2012 20:46:20 -0700 Message-ID: To: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=f46d04451787cce28304bf0587db Subject: how to instantiate new object From: yader.hernandez@gmail.com (Yader Hernandez) --f46d04451787cce28304bf0587db Content-Type: text/plain; charset=ISO-8859-1 Hello, I was wondering how to create a new object from a function call? By this I mean if I call foo() from a script, that should return a new instance of an object. If I call foo() again, it should be a new instance of an object as well. I haven't been able to find any good examples from the code I've been reading. Does anyone know of a good place to find an example? thanks --f46d04451787cce28304bf0587db--