Jump to content

Class name dobut


aruncourage

Recommended Posts

Dear friends .....

<?php

  class Test extends DATA

  {

      function __construct()

      {

        parent::__construct();

        echo 'This is child class';

      }

     

  }

  class data

  {

      function __construct()

      {

        echo 'This is parent class'.'<br>';

      }

  }

  $test=new Test();

 

?>

That is my code . I have answer. I put the class name differ from in that two classes. is it possible? is class name is not case sensitive ? please Explain me :confused:

Link to comment
https://forums.phpfreaks.com/topic/199899-class-name-dobut/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.