What is a PHP class? I've seen a lot of talk about these and how they
can help you out, but I've never seen a very good explanation. I've
been working with PHP for just over 6 months and usually hard code
everything into my scripts. Recently I've begun putting frequently-used
things (like my MySQL connect function) in a seperate file and
including them. But I still haven't seen the use of classes or even
functions for that matter. And one more thing - how do you set up a
function to accept variables?
Could someone please help me out?!?!
can help you out, but I've never seen a very good explanation. I've
been working with PHP for just over 6 months and usually hard code
everything into my scripts. Recently I've begun putting frequently-used
things (like my MySQL connect function) in a seperate file and
including them. But I still haven't seen the use of classes or even
functions for that matter. And one more thing - how do you set up a
function to accept variables?
Could someone please help me out?!?!
Comment