vb.net - Need Help Converting .NET class structure to PHP -


i hoping can me achieve same structure in php. here in .net class.

public class objsample  private _myprivatevar boolean = false  public property mypublicproperty boolean             return _myprivatevar     end     set(byval value boolean)         _myprivatevar = value     end set end property  end class 

here is:

class objsample {    private $_myprivatevar = false;     public $_mypublicproperty;     public function getmyprivatevar()    {        return $this->_myprivatevar;    }     public function setmyprivatevar($val)    {        $this->_myprivatevar = $val;    } } 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -