无法动态创建类var

时间:2016-03-08 14:48:13

标签: php

我希望在PHP脚本的运行时添加类变量,但似乎出错了,并且代码无法按预期工作。

Array ( [sid] => 901310601 [secure_key] => 684 [test] => 1 ) 
sid - 901310601
secure_key - 684
test - 1
SID = ''
Payment_gateway_2checkout::__set_state(array(
   'table' => '2checkout ',
   'parent' => NULL,
   'methods' => 
  array (
  ),
   'properties' => 
  array (
  ),
))

这是输出

$this->sid

901310601为空,但我想看{4}}

更新 这里是this

的转储
Payment_gateway_2checkout::__set_state(array(
   'table' => '2checkout ',
   'parent' => NULL,
   'methods' => 
  array (
  ),
   'properties' => 
  array (
  ),
))

0 个答案:

没有答案