How do I turn an array into a string?
Just use the delimiter as the first argument and the array as the second.
Here we go:
$myarray = array("I","love","washing","up");
$mystring = implode(" ", $myarray);
echo "$mystring";//I love washing up
More arrays PHP QuestionsOK I've been trying to echo out the arrays "$people and $other people" using the for-each method in alphabetical order. but when i see what this displays it does it in some other order. THIS IS THE CODE PHP Ch8 Lab
reverse an array
im getting a Resource id #5 $rs_comp = mysql_query("select * from company where autoID='$row_settings[compid]'");
How do I sort the members of an array by value?
How do I reverse sort an array by key?