jimforsyth 31 Newbie Poster

Hi SolidSolutions,

You can also treat a string like an array, i.e.

/* Set string var */
var my_string = 'longboard';

/* Store last character of string */
var last_character = my_string[my_string.length-1];

/* Alert */
alert( last_character );

Jim :)

jimforsyth 31 Newbie Poster

Hi MoreBloodWine,

You could loop through the array and replace the data with that of the legend:

foreach( $U2Array as $key => $item ) {
	if ( $key == "http_code" ) $U2Array[$key] = ${'$_'.$U2Array[$key]}; 
}

If you haven't sorted this out already, I hope you find this useful.

Kind regards

Jim :)