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.
Hi I am new to PHP development, need some help
Moderator: General Moderators
Re: Hi I am new to PHP development, need some help
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.
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.