So I have a class and I created an object of the class outside of it. When I try to execute the function createSummonerBasicArray() I get this error "Fatal error: Call to undefined function prepSummonerBasic()". So apparently it is saying prepSummonerBasic() does not exist. I tried making both functions public and it didn't change the error. New to PHP btw.
Class SummonerSearch{
function prepSummonerBasic($summoner, $server) {
}
function createSummonerBasicArray($summoner, $server){
$summonerBasic = prepSummonerBasic($summoner, $server);
}
};
$obj = new SummonerSearch('crippy', 'na');
$obj->createSummonerBasicArray('crippy','na');
$this->prepSummonerBasic(...)?