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); Quote 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). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.