Results 1 to 5 of 5

Thread: Triming first 7 characters

  1. #1

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Triming first 7 characters

    I have a string, of which the first 7 characters need to be stripped, so i am left with the remaining string.

    Any ideas on how this is done?

    ILMV

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Triming first 7 characters

    I would imagine the SubStr function would be of help to you:

    http://ca3.php.net/manual/en/function.substr.php

    HTH

  3. #3

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Triming first 7 characters

    I have been looking at that before, but i ant to delete those 7 characters from the string? can substr do this?

    ILMV

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Triming first 7 characters

    $mystring = substr($mystring, 7);

  5. #5

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Triming first 7 characters

    Thats the one i wanted thanks all guys

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