在php中添加新对数组

Sorry, I'm a newbie in PHP.

In my script, I try to make an array which contains a name of a document coupled with number of times it's been viewed. These two strings I get inside a loop: $name and $number. My array is called $myarray.

The problem is I want to couple these to in my array, so that I can make a list showing which document that's viewed the most.

Here is my code:

<br>
$myarray =array();

{{"loop"}}
<br>
{<br>
    $documentname = "name";<br>
    $viewed = "23124";<br>
    array_push($myarray, "$documentname","$viewed");<br>
}

How do make a new pair with $documentname and $viewed coupled?