fantomel Posted May 18, 2009 Share Posted May 18, 2009 hello guys i'm having some trouble around here with oop i'm having a function where i have to pass one or two parameters and i have like this $this->_file = str_replace(.....); on var_dump when i check to see what it outputs from str_replace it says NULL but if i add before that line $this->_classname = $_classname; works perfectly can someone explain to my why is doing like this? for each parameter that i pass i first need to do $this->_var = $var ? Link to comment https://forums.phpfreaks.com/topic/158598-oop-help-using-this/ Share on other sites More sharing options...
Ken2k7 Posted May 18, 2009 Share Posted May 18, 2009 What's in str_replace(...)? Can you post a more detailed version of your code? Link to comment https://forums.phpfreaks.com/topic/158598-oop-help-using-this/#findComment-836467 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.