How do I add to the end of an array and know how large the array is?
$arrayname = "$value";
However, if you want to know how many entries are in the array once you've done so, then you can get at that value simply by using the array_push function, like so:
$values = array("I","Like","Sentences","That","Don't");
$newelement = array_push($values,"Finish");
echo "There are now $newelement elements in the array:\n";
This prints out the following to the screen:
There are now 6 elements in the array:
 => I
 => Like
 => Sentences
 => That
 => Don't
 => Finish
More arrays PHP QuestionsHow can I check if a value is already in an array?
How do I count the number of times a value appears in an array?
How do I remove the first element from an array?
how do i send the information from one page to another page using post method.
How can I display values in a two dimensional array?