Discussion: pointers vs. objects
Afficher un message
Vieux 20/06/2008, 10h47   #3
Rik Wasmus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: pointers vs. objects

laredotornado@zipmail.com wrote:
> Hi,
>
> I'm using PHP 5. How do I tell if an array contains objects or
> pointers to objects?


1) References are not pointers.
2) Be it reference or not, you access the objects in exactly the same way.

Why do you need this? In PHP 5 objects are always passed by reference
BTW, so usually you don't need no weird &'s for that.

Var_dump will show a & if something is a reference.
--
Rik Wasmus
....moving deadlines for your pleasure.
  Réponse avec citation
 
Page generated in 0,04547 seconds with 9 queries