Page 1 of 1

Hi I am new to PHP development, need some help

Posted: Thu Jan 17, 2008 9:31 pm
by chalaka
Hi,

1) I have come across expressions such as the one below. Can you please tell me what it means. Specially the notation "->"
$Itemid = $menu->id;

2) Also, what is the use of "new" in this expression
$menu = new mosMenu( $database );

Thank you.

Re: Hi I am new to PHP development, need some help

Posted: Thu Jan 17, 2008 9:35 pm
by yacahuma
1.
the arrow(->) is how you get to memeber of an object

2. You are creating a new instance of the class mosMenu

I suggest you find a good php books. There are many and most of the ones I seen are good. Also there are a lot of php tutorial. Just search in google.