Class in PHP is very useful tool. Using classes is object-oriented part of php. Simple sample:
Create class.php and write this code there:

class myobject {

function f1 ($variable1,$variable2);
echo $variable1.’ – ‘.$variable2;


Then create index.php file and place this code there:

mynewobject=new myobject();


The resut will be such:

Name – Surname

Yeni yazı olanda email ilə bildiriş almaq istəyirsinizsə,

* indicates required

Şərh yazın

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>