tauchai Posted May 17, 2006 Share Posted May 17, 2006 if(!$sec->isLoggedIn()){ header ("location: ../login.php"); exit();}wat does this symbol means in PHP coding ? -> is it an aray or wat? -> same with => or not?anyone know plz reply. thxs a lot. Link to comment https://forums.phpfreaks.com/topic/9852-what-does-this-symbol-mean/ Share on other sites More sharing options...
samshel Posted May 17, 2006 Share Posted May 17, 2006 $sec is an object of a class and isLoggedIn() is the member function of that class.-> is used to call a member functions of a class using its object. U can also reference a member variable of a class using this.hth Link to comment https://forums.phpfreaks.com/topic/9852-what-does-this-symbol-mean/#findComment-36582 Share on other sites More sharing options...
wildteen88 Posted May 17, 2006 Share Posted May 17, 2006 The -> is an operator used when doing OOP (Object Oriented Programming) in PHP. It allows you to call functions/variables from within a class as [b]samshel[/b] mentioned above.-> is not the same as =>=> is used when assigning indexes/keys within an array. Link to comment https://forums.phpfreaks.com/topic/9852-what-does-this-symbol-mean/#findComment-36653 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.