Names & Conventions question
Posted: Wed Jun 16, 2010 3:18 pm
Hi all,
I'm essentially a front end Flash developer and I'm learning php.
I'm having a little trouble understanding the naming of things.
In ActionScript (the native Flash OOP language) we have classes, functions, variables and routines
(plus a few other odd bits and pieces like event listeners)
I guess a variable is a variable is a variable in any language but reading through some php tutorials tonight I'm confused
by the use of "class", "method" and "function" which are clearly similar - but not quite the same as I'm used to.
I've done a fair bit of pretty basic php and I'd like to go more advanced so I need to sort this out in my head
Can anyone put me right with a few idiot proof definitions (and maybe comparisons with ActionScript) ?
Best wishes
Monty
I'm essentially a front end Flash developer and I'm learning php.
I'm having a little trouble understanding the naming of things.
In ActionScript (the native Flash OOP language) we have classes, functions, variables and routines
(plus a few other odd bits and pieces like event listeners)
I guess a variable is a variable is a variable in any language but reading through some php tutorials tonight I'm confused
by the use of "class", "method" and "function" which are clearly similar - but not quite the same as I'm used to.
I've done a fair bit of pretty basic php and I'd like to go more advanced so I need to sort this out in my head
Can anyone put me right with a few idiot proof definitions (and maybe comparisons with ActionScript) ?
Best wishes
Monty