-1
$title = l(
    $comment->subject,
    comment_node_url(),
    array('fragment' => "comment-$comment->cid")
  );

Ok, so $title is the l() function, and from what I'm reading, I am passing the $comment->subject argument to l() - is that correct?

What does $comment->subject mean? I'm looking all over and not understanding what it means. Is it an operator of some sort?

Sorry if this is a simple question - I just can't find the answer anywhere.

Steven Matthews
  • 9,705
  • 45
  • 126
  • 232
  • Look under the "classes & objects" section of the above linked question. Also see [the PHP docs on objects & classes](http://www.php.net/manual/en/language.oop5.basic.php) – Michael Berkowski Jun 09 '13 at 22:16
  • You guys may have downvoted me, but that "reference - what does this symbol mean in PHP?" is just about the most fantastically useful thing I've ever seen. Thank you! – Steven Matthews Jun 09 '13 at 22:24
  • OOP! learn it! It will be worth it.. – Evert Jun 09 '13 at 22:54

1 Answers1

1

It's just an operate that indicates that "subject" is a property of $comment. You can read a bit more on the PHP manual.

Vaughan Hilts
  • 2,839
  • 1
  • 20
  • 39