Jump to content

What does -> means?


jponte

Recommended Posts

when you see a "->" being used, it has to do with objects and php classes.

 

Do you know about arrays?

 

for an array you would use $test['myvar'] , for an object, you would use $test->myvar

 

You build an object using a "class", check out this tutorial: http://edrackham.com/php/php-class-tutorial/

Link to comment
https://forums.phpfreaks.com/topic/193515-what-does-means/#findComment-1018717
Share on other sites

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.