Hi Everyone,
I need some help, I have a function in B4A which does basic ASCII shift on a string input. I use this function to do a basic encryption on my data. My PHP knowledge is very poor and having tried multiple times I am not able to get the below function converted to PHP.
I would appreciate if someone could convert the below into PHP
Thank you in advance
I need some help, I have a function in B4A which does basic ASCII shift on a string input. I use this function to do a basic encryption on my data. My PHP knowledge is very poor and having tried multiple times I am not able to get the below function converted to PHP.
I would appreciate if someone could convert the below into PHP
B4A Function:
Sub AsciiSwitch(InputString As String, ValueToAdd As Int) As String
Dim OutputString As String
OutputString=""
Dim c As Char
For i = 0 To InputString.Length - 1
c = InputString.CharAt(i)
OutputString = OutputString & Chr(Asc(c) + ValueToAdd)
Next
Return OutputString
End Sub
Thank you in advance