Hi I am new to PHP development, need some help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chalaka
Forum Newbie
Posts: 1
Joined: Thu Jan 17, 2008 9:22 pm

Hi I am new to PHP development, need some help

Post 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.
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

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

Post 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.
Post Reply