PHP and JS Class matching

Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.

Popular code excerpts may be moved to "Code Snippets" by the moderators.

Moderator: General Moderators

Post Reply
kgrube
Forum Newbie
Posts: 1
Joined: Wed Feb 08, 2017 8:45 pm

PHP and JS Class matching

Post by kgrube »

Hello All,

I am fairly proficient in JS and PHP at functional coding. I am starting to get into OOP and I am unsure of how exactly to work with classes. I understand how to create/call classes etc. However, when I create nicely structured classes and begin to use them in my program, I end up going back to functional coding.

Are there any good resources to help with this? I have searched an have not found any that are detailed. I was asked to match classes in PHP to JS, which I am able to do. I just get caught up when using these classes together in my program (which is my main goal to accomplish with this post, also another question of why match the classes?).

Thanks for any help in advance.
Post Reply