Language

Count

$m is an array
$num=count($m)


explode/implode

$pastor=array('Dary Northrop','Jeff Lucas','Frank Estep','Darren Fred','Doug Miller', 'Barb Myers', 'Reza Reza');
while (list ($key, $val) = each ($pastor)){
reset($pastor)
**************************
Use implode() and explode() to pass the contents of a single
dimensional
array from one page/script to another using a form:
First, implode() an array of strings on the first page. Example:
$yourarray[0] = "foo";
$yourarray[1] = "bar";
$string = implode("|", $yourarray); //$string looks like this: foo|bar

// Send $string on to the next page:
echo "<input type=hidden name=string value=$string>";

On the second page/script, explode() $string to get your array back:
$seconddarray = explode("|", $string);


Sort

Reverse sort
rsort($bulletin);