What does -> mean in php?

Thanks

It's related to objects, in PHP you can write something like this:

<?php
$obj = (object) array("a" => "hello", "b" => "world");
echo $obj->a . ' '. $obj->b;
echo "\n";
?>

Source: http://php.net/manual/en/language.types.object.php
bye :)

It is a PHP operator used to call methods and properties of a PHP class (used in Object Oriented PHP).

This tutorial may help you understand better http://bit.ly/vS6H9P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.