SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast icrafter's Avatar
    Join Date
    Nov 2001
    Location
    Denver, CO
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Replace Characters

    Hi I need to be able to convert a string of characters and then replace that with a escape code.

    I.E. BSI2000 INC to BSI2000%20INC

    or

    I.E. 'BSI' to %60BSI%60

    Thanks for your help.

    I know that I could do this with regex but I not sure how.

    Thanks
    Paul K. Zorn - pzorn@interlacedmedia.com
    All help is always good and I will always try to help back.

    http://www.interlacedmedia.com/ - Full Service Graphic Design, Multimedia, Photography, Video and Web Shop.

  2. #2
    SitePoint Wizard Crowe's Avatar
    Join Date
    Nov 2001
    Location
    Huntsville
    Posts
    1,117
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I think you are looking for this:

    PHP Code:
    $encoded urlencode($string); 
    Chrispian H. Burks
    Nothing To Say

  3. #3
    SitePoint Enthusiast icrafter's Avatar
    Join Date
    Nov 2001
    Location
    Denver, CO
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks thats work.
    Paul K. Zorn - pzorn@interlacedmedia.com
    All help is always good and I will always try to help back.

    http://www.interlacedmedia.com/ - Full Service Graphic Design, Multimedia, Photography, Video and Web Shop.


Bookmarks

Posting Permissions

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