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. 
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.