Have VBA function that creates a random digit to be added to two concatenated variables. Need to convert this function to PHP. Have the VBA code plus a working model (Spreadsheet). The two variables will come from a Postgress database record.
The format of the function call in VBA is:
Function CreateIBCNumber(companyConstant As String, loanNumber As String) As String
Again, will provide text based code and working model XCELSpreadsheet.