Jump to content

What's the different between $x->y and between $x['y']?


Betty_S

Recommended Posts

Please make an attempt to post in the right forum.  The forum that says "Things about the site and board" is not the right place.  The forum that says "PHP Help," although I know it really is counter-intuitive, [i]is[/i] the right place.

$x->y is an object called $x and y is either a property or method.

$x['y'] is an array called $x and y is the name of one of its array elements.  The array element would physically be called 'y'.

Neither are database specific.  There are different methods to retrieve data from a database, which involve different ways of holding that data. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.