Cara menggunakan collator sort php

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

❮ PHP Array Reference

Example

Sort the elements of the $cars array in ascending alphabetical order:

$cars=array("Volvo","BMW","Toyota");
sort($cars);
?>

Try it Yourself »


Definition and Usage

The sort() function sorts an indexed array in ascending order.

Tip: Use the rsort() function to sort an indexed array in descending order.

Syntax

Parameter Values

ParameterDescriptionarrayRequired. Specifies the array to sortsorttypeOptional. Specifies how to compare the array elements/items. Possible values:
  • 0 = SORT_REGULAR - Default. Compare items normally (don't change types)
  • 1 = SORT_NUMERIC - Compare items numerically
  • 2 = SORT_STRING - Compare items as strings
  • 3 = SORT_LOCALE_STRING - Compare items as strings, based on current locale
  • 4 = SORT_NATURAL - Compare items as strings using natural ordering
  • 5 = SORT_FLAG_CASE -


Technical Details

Return Value:TRUE on success. FALSE on failurePHP Version:4+

More Examples

Example

Sort the elements of the $numbers array in ascending numerical order:

$numbers=array(4,6,2,22,11);
sort($numbers);
?>

Try it Yourself »


❮ PHP Array Reference

The collator_asort() function is an inbuilt function in PHP which is used to sort array maintaining the index association. This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. The array elements are sorted according to current locale rules. Syntax:

  • Procedural style:
bool collator_asort( $coll, &$arr, $sort_flag )
  • Object oriented style:
public bool Collator::asort( &$arr, $sort_flag )

Parameters: This function accepts three parameters as mentioned above and described below:

  • $coll: This parameter is used as collator object.
  • $arr: This parameter contains the array of strings which need to sort.
  • $sort_flag: It is optional parameter which is used to define the sorting method, one of the following:
    • Collator::SORT_REGULAR: It compare items normally. It is the default sorting.
    • Collator::SORT_NUMERIC: It compare items numerically.
    • Collator::SORT_STRING: It compare items as strings.

Return Value: This function returns True on success or False on failure. Below programs illustrate the collator_asort() function in PHP: Program 1: 

bool Collator::sort( $arr, $sort_flag )
bool Collator::sort( $arr, $sort_flag )
2
bool Collator::sort( $arr, $sort_flag )
3
bool Collator::sort( $arr, $sort_flag )
4
bool Collator::sort( $arr, $sort_flag )
5
bool Collator::sort( $arr, $sort_flag )
6
bool Collator::sort( $arr, $sort_flag )
7
bool Collator::sort( $arr, $sort_flag )
6
bool Collator::sort( $arr, $sort_flag )
9
bool Collator::sort( $arr, $sort_flag )
6
array (
  0 => 'geek',
  1 => 'geeK',
  2 => 'Geek',
  3 => 'geeks',
)
1 );

Cara menggunakan collator sort php
Collator

        RISO terkenal secara global akan keandalan duplikator digitalnya dan satu-satunya perusahaan di dunia yang menawarkan duplikator digital dua warna, sekarang dengan bangga memperkenalkan model dua warna paling canggihnya. Seri MF menetapkan standar emas baru untuk produktivitas, biaya, kualitas gambar, dan pengoperasian. Tata letak dua drum membuat pencetakan dua warna lebih cepat dan lebih mudah dari sebelumnya, dengan opsi serbaguna yang cocok bahkan untuk pencetakan dengan volume kecil.

Collator Series

Cara menggunakan collator sort php

Collator TC7100

Cara menggunakan collator sort php

unduh Brosur

Permintaan Demo Mesin

Detailed Specs

Specifications

TC7100 Specifications

number of bins10 binsPaper sizeMaximum: 328 x 469mm (12.9″x18.5″)
Minimum: 95 x 150mm (3.8″ x 5.9″)Paper weight52gsm (14-lb bond) to 157gsm (87-lb index)*1Bin capacity28mm, 350sheets of 64gsm(17-lb bond) paperCollating speed2 levels (70 or 40 sets per minute for A4 long-edge feeding)Stacking modeOff-set Stacking or Straight StackingJob modeNormal mode/Alternate mode/Insert mode/Repeat modeDetecting functionsEmpty feed, No paper, Paper jam, Double feed, Receiving tray full, Paper eject jam, Back door open, Option errorOperation panel4 digits LED counterReceiving tray capacity75mmPower source100-240V AC, 50/60Hz <2.0-1.2A>Power consumptionMaximum: 120WDimensions (WxDxH)690mm x 540mm x 1,060mm (27.1″ x 21.3″ x 41.8″)Dimensions (WxDxH) with anti-fall plate885mm x 540mm x 1,060mm (34.9″ x 21.3″ x 41.8″)Weight79.7kg (175.7lb)

*1:Up to A3 size.
Notes: Please note that due to improvements and changes to the machine, some images and explanations in this leaflet may not correspond to your machine. Specifications are subject to change without prior notice.

TC Staple Punch Specifications

Compatible modelRISO COLLATOR TC7100Paper sizeA3, B4(JIS), A4, B5(JIS)Paper weight52gsm (14-lb bond) to 128gsm (34-lb bond)ProductivityWith staple and punch: 11 sets per minute for A4 LEF
With staple : 14 sets per minute for A4 LEFStaple1 cornerPunch holes2 holes at the center of the feeding edge
Diameter 6mm, Pitch 80mmPower source100-240V AC, 50/60Hz <0.3-0.2A>Power consumptionMaximum: 19WDimensions (WxDxH)1,315mm x 540mm x 1,060mm (51.7″ x 21.3″ x 41.8″)*2Weight19kg (42lb)*2

*1: Including RISO COLLATOR TC7100

  • High-speed process to collate up to 70 sets per minute.

    Cara menggunakan collator sort php

    In case of 10 pages of A4-size documents, the machine collates up to 70 sets of paper sheets in only one minute.

    Each paper bin can accept up to 350 sheets of paper.

    Cara menggunakan collator sort php

    The machine handles paper in various sizes ranging from a postcard size to an A3+ size.
    Because each paper bin can accept up to 350 paper sheets in one time, even large volume of paper can be collated efficiently.

    Alignment the paper edges precisely.

    Cara menggunakan collator sort php

    Using the horizontal slide mechanism, the machine can sort documents smoothly and align the paper edges precisely.
    You can significantly reduce the time and labor for sorting.

    A panel on the machine shows paper feeding condition.

    Cara menggunakan collator sort php

    The sensor always monitors errors such as paper jams, multiple feeding and unloaded feeding, and shows the place and details of the error with the light.

    Alternate mode for more than 350 sets of documents, Insert mode for partitioning sheets.

    In the alternate mode, neighboring two bins are used together for the same sheet to produce more than 350 sets of documents that have 5 or less pages in one operation. In the insert mode, partitioning sheets are inserted between a designated numbers of collated sets.

    TC Staple Punch

    Cara menggunakan collator sort php

    The optional TC Staple Punch Unit can be attached to the tower. Where producing 11 collated sets of 10 A4 paper in long-edge feeding, process from collation to stapling and 2-hole punching can be done automatically in only one minute or less.

    *Picture: A collator combined with the optional RISO Collator TC Stand II and the optional TC Extension Stand.