php - ActionScript join/split -


hi guys have port few functions php, ran small problem.

there's array, lets called arr1. there switch, pushes argument array, after switch ends, i'm stuck @ join("").split("");

var arr1 = [];     switch (mystring)     {         case "apple":         {             arr1.push("apple");             break;         }      } } arr1 = arr1.join("").split(""); 

i know simple, never had experience arrays in flash before, realized join("") used convert array string, isn't split reversing this?

what code doing first joining array values string, , splitting them array of separate characters. php equivalent (tested):

$arr1 = array("apple");  //arr1 after switch $arr1 = str_split(implode('',$arr1)); 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -