Home  >  Article  >  Backend Development  >  Two codes of PHP

Two codes of PHP

不言
不言Original
2018-04-16 09:09:411301browse

This article introduces several codes in PHP, which has certain reference value. Friends in need can refer to it

 <?php 

namespace Math 
{
   class Complex
   {
        //...code...
        function __construct()
        {
              print("hey"); 
        }
    } 
}

$m = new Math::Complex();   

?><?php 

namespace Math 
{
   class Complex
   {
        //...code...
        function __construct()
        {
              print("hey"); 
        }
    } 
}

$m = new Math::Complex();   

?>
<?php 

namespace Math 
{
   class Complex
   {
        //...code...
        function __construct()
        {
              print("hey"); 
        }
    } 
}

$m = new Math::Complex();   

?>

                                                                                                                                                           

The above is the detailed content of Two codes of PHP. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn