1 <?php
 2 class 3 {
 4     
 5     function w( )
 6     {
 7         echo "stringW";
 8     }
 9 }
10 
11 $a = new 中;
12 $a->w();
13 
14 class ‘’77  
15 {
16     
17     function w( )
18     {
19         echo "string7";
20     }
21 }
22 
23 $a = new ‘’77;
24 $a->w();


//stringWstring7

1 class '中'  
2 {
3     
4     function w( )
5     {
6         echo "stringW";
7     }
8 }

//( ! ) Parse error: syntax error, unexpected ''中'' (T_CONSTANT_ENCAPSED_STRING), expecting identifier (T_STRING)

posted @ 2016-08-24 01:15  papering  阅读(156)  评论(0编辑  收藏  举报