shaddf Posted April 23, 2017 Share Posted April 23, 2017 is it possible to call a static function inside another static function within the same class holding them both like so: public static function checkFile(){//just check if good file before upload to db $result = false; $name = $this->getorigName(); $size = $this-> get_file_size(); $ext = $this->getExtension($name); Link to comment Share on other sites More sharing options...
Jacques1 Posted April 23, 2017 Share Posted April 23, 2017 The answer to “Is X possible?” is always: Try it. You don't seem to understand what static means, though. There is no $this in a static context. Just self and static (the latter implements late static binding). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.