How do I remove and view the last element of an array?
$values = array("I","Like","Sentences","That","Don't","Finish");
$discard = array_pop($values);
echo "Bye bye to $discard...\n\n";
$sentence = implode(" ",$values);
Which gives us the following output:
Bye bye to Finish...
I Like Sentences That Don't
More arrays PHP QuestionsHow can I mix up the order of values in an array?
HOW CAN I DELETE ALL THE ELEMENT OF THE ARRAY
when i fetch the record in the database but they skip first record in the database
How do I add to the beginning of an array and find the number of elements in it?
How can I display a 2 dimensonal array?