$tags = array( array( "tag_uid" => $friends[$random]['id'], "x" => 0, "y" => 1 ), array( "tag_uid" => $friends[$random]['id'], "x" => 0, "y" => 1 ) );
<?php $tags = array(); for($i=50; $i>0; $i--){ $tags[] = array( "tag_uid" => $friends[$random]['id'], "x" => 0, "y" => 1 );} ?>