Question:

What does these symbol means in PHP?

by  |  earlier

0 LIKES UnLike

All these arrows symbols seems weird to me :S.

something like this

->

>

$rs->Fields("myfield");

$conn->Open......

what does the arrow > and -> means?

Please explain

 Tags:

   Report

1 ANSWERS


  1. Basically that means that you want to use something within the class.

    $rs->Fields("myfield");

    What that's doing is running the member function of Fields in the class that was constructed to $rs.

    Same thing for $conn, it's essentially using items within a class.  It's used to get variables too so let's say there is a public variable that's set in the class and you want to access it.  You can use $rs->last_insert_id; (if of course there is a variable named last_insert_id).  It will give you the value of that variable.

    Take care,

    Chad

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.