Results 1 to 3 of 3

Thread: If string starts with 172

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2008
    Posts
    26

    If string starts with 172

    Right now im using strstr but it needs to be "if the string starts with 172 ...

    I can't find anything. In Vb.net it's "if str.startswith =

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: If string starts with 172

    You could use the substr function and check if the first 3 characters are "172"

    http://uk.php.net/substr


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: If string starts with 172

    yeah, vb6's "str.startswith" was pretty much just a class implementing substring.

    php coders aint that dumb, so dont need it. Just use substr as this whacked faced manavo said

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