Results 1 to 10 of 10

Thread: a function from VB to PHP[solved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    Resolved a function from VB to PHP[solved]

    hi, can somebody convert the VB code below to php
    VB Code:
    1. Private Function Between(Begining As String, Ending As String, TextToLookIn As String) As String
    2. Dim Be, En, TTLI As String
    3. Be = Begining
    4. En = Ending
    5. TTLI = TextToLookIn
    6. TTLI = Right(TTLI, Len(TTLI) - (InStr(1, TTLI, Be) + Len(Be) - 1))
    7. Between  = Left(TTLI, InStr(1, TTLI, En) - 1)
    8. End Function
    Last edited by kill_bill_gates; Mar 5th, 2005 at 09:28 AM.
    "Quis custodiet ipsos custodes?"
    Juvenal
    Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
    I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
    -=Joey Jordison R0CKS!! =-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width