pcw Posted February 18, 2009 Share Posted February 18, 2009 Hi, I am just translating some code from PERL to PHP: This is a line from the script that I have started to translate: if($rulepointer->['action'] == $action){ The -> does not seem to work. Is there a PHP equivalent? Link to comment https://forums.phpfreaks.com/topic/145740-does-php-have-a-equivalent/ Share on other sites More sharing options...
Mchl Posted February 18, 2009 Share Posted February 18, 2009 In PHP -> is used to indicate a method or property of an object Example $mysqli->query($sql); runs method query() of object $mysqli. What does -> in PERL stand for? Couldn't find any info. Link to comment https://forums.phpfreaks.com/topic/145740-does-php-have-a-equivalent/#findComment-765177 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.