Home > Backend Development > PHP Tutorial > Two codes of PHP

Two codes of PHP

不言
Release: 2023-03-23 21:44:01
Original
1394 people have browsed it

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();   

?>
Copy after login
<?php 

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

$m = new Math::Complex();   

?>
Copy after login

                                                                                                                                                           

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template