convert array to string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rpapaiof
    New Member
    • Oct 2006
    • 27

    #1

    convert array to string

    how can i convert an array to string my problem is the following
    i have a TXT file that contain some numbers
    i have to read them from file put them in array then i have to put 3 radio buttons with following functions
    ascend sort of array
    descend sort
    and reverse
    after each function i have to write changed for of array into a new file.
    i have problem with writing them in new file.
    please help me
  • TheMadMidget
    New Member
    • Oct 2006
    • 98

    #2
    implode(separat or,array)
    The implode() function returns a string from the elements of an array.
    Last edited by TheMadMidget; Nov 22 '06, 09:24 PM. Reason: Make hyperlink active

    Comment

    • rpapaiof
      New Member
      • Oct 2006
      • 27

      #3
      Originally posted by TheMadMidget
      thank u for your help my friend

      Comment

      • Artnessde
        New Member
        • Nov 2011
        • 13

        #4
        just my 2cent:

        maybe a better solution would be to write the data serialized() or json_encode()'e d to the file?

        Comment

        Working...