Follow Us
Contribute
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.

Categories

+1 vote

for eg:

class A

{

function one($pp)

{

}

function two()

{

echo $pp;  //Iwant to make $pp display here, but not working

}

}

requested by
edited by

1 Solution

0 votes

I know it's a year old question, but I'm bored...

try


class A {

private $_pp;

function one($pp)

{

  $this->_pp = $pp;

}

function two()

{

  echo $this->_pp;

}

}

solved by
edited by
...