5 Replies - 953 Views - Last Post: 22 June 2010 - 09:36 AM Rate Topic: -----

#1 Guest_vivek*


Reputation:

OOP php

Posted 21 June 2010 - 11:52 PM

hello friends

i have been doing php development since 6 to 8 month
but mostlly using without OOP concept
i want to learn oop in php. i have downloaded lots of tutorial

but i need more concept in detail....
so plaese friende sugest me... the way to go...

thanks
Is This A Good Question/Topic? 0

Replies To: OOP php

#2 aaron1178  Icon User is offline

  • Dovakiin, Dragonborn
  • member icon

Reputation: 169
  • View blog
  • Posts: 1,303
  • Joined: 22-October 08

Re: OOP php

Posted 22 June 2010 - 12:30 AM

Well, you should look in google for php oop, but here is a tutorial from the makers of php
Php oop5
This covers everything that has to do with oop classes and objects

I hope this helps

example:
<?php
class myclass
{
public myname;
function myname($name)
{
$myname = $name;
echo $myname;
}
}
?>

Witch will be calles as so
$name = "Bob";
$i = new myclass;
$->myname($name);



Thanks Aaron1178
Was This Post Helpful? 0
  • +
  • -

#3 atik97  Icon User is offline

  • ???
  • member icon

Reputation: 144
  • View blog
  • Posts: 715
  • Joined: 16-September 08

Re: OOP php

Posted 22 June 2010 - 01:16 AM

You can have a look at this tutorial.
Was This Post Helpful? 0
  • +
  • -

#4 mahcuz  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 143
  • View blog
  • Posts: 213
  • Joined: 03-June 10

Re: OOP php

Posted 22 June 2010 - 01:30 AM

You're question is far too broad. Why don't you ask a more specific, targeted question? For example, what part of OOP are you having difficulty with?
Was This Post Helpful? 1
  • +
  • -

#5 ShaneK  Icon User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: OOP php

Posted 22 June 2010 - 07:46 AM

I found this tutorial really helpful.

Yours,
Shane~
Was This Post Helpful? 1
  • +
  • -

#6 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10781
  • View blog
  • Posts: 40,153
  • Joined: 27-December 08

Re: OOP php

Posted 22 June 2010 - 09:36 AM

You should also check out the OOP tutorials in the Software Development section, as well as in the Java section. While Java has its differences from PHP in regards to OOP, the concepts are 95% the same and the syntax is very similar, so it should carry over pretty well.
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1