I'm developing a project ,written before in vb6, using PHP.
I have variable called VLSALESITEMID as string
Then a select. (VGID)
Then
VLSALESITEMID=VLSALESITEMID & VGID.field("SALESITEMID").Value & ","
Then
VLSALESITEMID=Mid(VLSALESITEMID, 1, Len(VLSALESITEMID) -1).
I want to translate it to php, any help?
MID FUNCTION :
' Creates text string.
Dim TestString As String = "Mid Function Demo"
' Returns "Mid".
Dim FirstWord As String = Mid(TestString, 1, 3)
' Returns "Demo".
Dim LastWord As String = Mid(TestString, 14, 4)
' Returns "Function Demo".
Dim MidWords As String = Mid(TestString, 5)