I have two methods in a PHP class:
public static function sID($urlID) {
return base_convert($urlID, 10, 62) - 239000;
}
public static function load($urlID) {
if ($urlID = "" || !is_numeric($urlID)) return 0;
$id = sID($urlID); // ERROR ON THIS LINE
}
I am getting the error:
Fatal error: Call to undefined function sID()
I have looked around online but amazingly enough, haven't found any solution to this seemingly simple problem. Is there a syntax error or otherwise?