Results 1 to 3 of 3

Thread: What does this ( -> ) do? (RESOLVED)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Minnesota
    Posts
    830

    What does this ( -> ) do? (RESOLVED)

    I saw the following code and am wondering what the following is happening when you have ->?

    PHP Code:
    function infoBoxContents($contents) { 
    global 
    $css_class
    $this->table_cellpadding '3'
    $this->table_parameters 'class="'.$css_class.'"'
    $info_box_contents = array(); 
    ...... 
    Thanks in advance.
    Last edited by lleemon; Jun 9th, 2003 at 01:49 PM.

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    kind of similar to the . in VB for method and property assignments

    VB it is this

    frm1.Caption
    txt1.Text

    PHP it is this

    frm1->Caption
    txt1->Text
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Minnesota
    Posts
    830
    Thanks. Makes a lot of sense.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width