Since you want to return the result from $data(), you need to use the "return" command, eg. return $readini().