I am new to PHP scripting. I developed a VB.net application in which I am using
GetHashCode()
Dim MyString As String = "hello"
MsgBox(MyString.GetHashCode)
-695839
No, you can't do that with String.GetHashCode
.
You can not persist result of String.GetHashCode
as it may/will change between launches of the same program - so even if there is "equivalent" method in PHP you can't use really compare they results.
You need to use some custom code both sides agree on.
I.e. use SHA256 to compute hash of the string - there are many samples how to compute hash in either language i.e. hmac_sha256 in php and c# differ covers both. If writing code yourself make sure to understand how to encode strings (i.e. UTF8) and result (i.e. Hex or Base64).