How do I use PHP to convert a single character into a string of characters?

Discussion in 'Programming/Scripts' started by Padilpi, May 25, 2012.

  1. Padilpi

    Padilpi New Member

    I want to use PHP to find any / that is in a variable which can be called via $_GET. This variable is the end part of a document URL. The URL will be fed into Google Document Viewer. However, the embedded document URL should use %2F instead of /. Is it possible to use PHP to say "every time I see /, I replace it with %2F"?

    Online Deals India
    Last edited: May 26, 2012
  2. arifur

    arifur New Member

Share This Page