请问各位高手PHP中的->这个符号是代表什么意思啊??求求哪位高手告诉我。另我想拜师QQ:86022645哪位高手想收我的加一下,我感激不尽!谢谢

解决方案 »

  1.   

    class MySQL
    {
       public $a = 'value';   ...
    }$db = new MySQL;print( $db->a );
      

  2.   


    class A
    {
       public $attribute1;
       function A()
       {
         $this -> attribute1 = "xx";
       }
       function func1()
       {
         //程序
       }
    }//实例化类A
    $A = new a();
    //调用属性或方法.
    $attribute1 = $A -> attribute1;
    $func1 = $A -> func1();