1 Reply Latest reply on May 20, 2010 5:32 PM by kglad

    Find number in string

    Tony Heagren Level 1

      Hi all,

       

      I am using flashvars to import a whole load of data via php - and it works fine

       

      Only one issue - one array that I'm using lists the dir paths to images and each element looks like this:

      members/3/images/22.jpg

      (I use these dir paths to display images).

       

      Now I want to use just the "3" from that string (element) for another purpose (to identify the person who uploaded the picture).

       

      How can I pull out the "3" as a variable "MemNum"  (remembering that it could be up to a five or six digit number so everything after

      the first slash and before the second one) or just strip everything else out of the string to leave only the member number for use as a variable?

       

      All and any help much appreciated.

       

      Best wishes

      Tony

       

       

      PS - does anyone know of a forum that deals with the issues thrown up by using Flash and php together ?