Welcome Guest, Not a member yet? Register   Sign In
Problem with array to string
#3

[eluser]Federico BaƱa[/eluser]
You're creating an associative array instead of one with a numeric index, that's why you dont get the result you want from implode(), I think.

Try it like this:
$arr = array( 'asd1', 'asd2', 'asd3' );

Then:
print_r( $arr[0] ) => 'asd1'
print_r( $arr[1] ) => 'asd2'
print_r( $arr[2] ) => 'asd3'

Hope this helps.


Messages In This Thread
Problem with array to string - by El Forum - 07-28-2010, 05:49 PM
Problem with array to string - by El Forum - 07-28-2010, 06:18 PM
Problem with array to string - by El Forum - 07-28-2010, 06:24 PM
Problem with array to string - by El Forum - 07-28-2010, 06:28 PM
Problem with array to string - by El Forum - 07-28-2010, 06:36 PM
Problem with array to string - by El Forum - 07-28-2010, 07:54 PM
Problem with array to string - by El Forum - 07-29-2010, 02:27 AM
Problem with array to string - by El Forum - 07-29-2010, 04:16 AM
Problem with array to string - by El Forum - 07-29-2010, 04:16 AM
Problem with array to string - by El Forum - 07-29-2010, 06:55 AM
Problem with array to string - by El Forum - 01-14-2011, 04:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB