# Returnng Object

- Thread: https://externals.io/message/14918
- Original archive: https://news-web.php.net/php.internals/14918
- Started by Chris Cranford on 2005-02-14T11:20:27+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #14918 — Chris Cranford — 2005-02-14T11:20:27+00:00

URL: https://externals.io/message/14918#14918

I have been able to create objects in a function call in my extension and
use them in my php page; however I would rather do something like:

  $myobj = myfunc();
  echo $myobj->property;

How am I suppose to return an object from a function?
