Correct use of the plural in PHP

Source: Internet
Author: User
: This article mainly introduces the correct use of the plural in PHP. if you are interested in the PHP Tutorial, please refer to it.
1
 'Addenda', 21 'alga' => 'algae', 22 'aluma' => 'alumnae', 23 'alumenus' => 'alumni ', 24 'analytic' => 'analys', 25' antenna '=> 'antennas', // antennae 26 'apparatus' => 'apparatuses ', 27 'Appendix' => 'appendices', // appendixes 28 'Axis '=> 'axes', 29 'acaclo' => 'bacilli ', 30 'bactery' => 'bactera', 31 'basis' => 'bases', 32 'Beau '=> 'beaux', 33 'bison '=> 'bison ', 34 'Buffalo' => 'buffalos ', // buffaloes 35 'bureau' => 'bureaus', 36 'bus' => 'buss ', // buses 37 'Cactus '=> 'cactuses', // cacti 38 'calf' => 'calves ', 39 'kids' => 'Children ', 40 'corps' => 'corps', 41 'corpus' => 'Privacy A', // corpuses 42 'crisis '=> 'criess ', 43 'criterion '=> 'critera', 44 'Curriculum' => 'curricula ', 45 'datum' => 'Data', 46 'deer' => 'deer ', 47 'dir' => 'Dice ', 48 'dwarf' => 'dwarfs', // dwarves 49 'Diagnosis' => 'diagnos ', 50 'echo '=> 'echoes', 51 'Elf' => 'elves', 52 'ellipsis '=> 'ellips', 53 'embargo' => 'embargoes ', 54 'memphases' => 'memases', 55' erratum '=> 'erata', 56 'fireman' => 'Firemen ', 57 'Fish' => 'Fish ', // fishes 58 'delete' => 'focuses ', 59 'foot' => 'feet', 60 'formula' => 'formulas ', 61 'fung' => 'Fungi', // funguses 62 'genus' => 'genera ', 63 'goose' => 'Geese ', 64 'half' => 'halves ', 65 'hero' => 'Heroes', 66 'hippotamus' => 'hippopotam ', // hippopotamuses 67 'hoof' => 'hoofs', // hooves 68 'hypothesis '=> 'hypothes', 69 'index' => 'indices ', // indexes 70' knife '=> 'knives', 71 'leaf' => 'leaf', 72 'life' => 'Lives ', 73 'loaf' => 'loafs', 74 'louse' => 'Lice ', 75 'Man' => 'Men ', 76 'Matrix' => 'matrices ', 77 'means' => 'means ', 78 'Medium' => 'media ', 79 'Memorandum' => 'Memoranda ', 80' millennium' => 'millenniums ', // milennia 81 'Moose' => 'Moose', 82 'mosquito '=> 'Mosquitoes', 83 'mouse '=> 'mice ', 84 'Nebula '=> 'nebuclae', // nebulas 85 'neurosis' => 'neuroses ', 86 'synus' => 'syni ', 87 'oases' => 'oases', 88 'octopus' => 'octopi ', // octopuses 89 'ovum' => 'ova ', 90 'ox '=> 'oxen', 91 'paralysis' => 'paralyses ', 92 'parenthesis' => 'parentheses ', 93 'person' => 'people ', 94 'phenomenon' => 'phenomena', 95 'potato '=> 'potates', 96 'radius' => 'radii ', // radiuses 97 'scraise '=> 'scafs', // scarves 98 'self' => 'selves ', 99 'series' => 'series ', 100 'sheep '=> 'sheep', 101 'shelf' => 'shelves ', 102 'sciss' => 'sciss', 103 'species' => 'species ', 104 'stamulus' => 'stamuli', 105 'stratum' => 'stra', 106 'labus' => 'labi ', // syllabuses107 'Symposium '=> 'symposia', // symposiums108 'Synthesis' => 'synthes', 109 'synopsis '=> 'synops ', 110 'Tableau '=> 'tableaux', 111 'that' => 'those', 112 'thesis '=> 'thes', 113 'thief' => 'thieves ', 114 'this' => 'thes', 115 'tomato' => 'tomates', 116 'tooth '=> 'Teeth', 117 'torpedo' => 'torpedoes ', 118 'versionbrae' => 'versionbrae', 119 'veto '=> 'vetoes', 120 'Vita' => 'vitae ', 121 'Watch' => 'watches ', 122 'wife '=> 'wives', 123 'Wolves' => 'Wolves', 124 'Woman '=> 'women', 125 'zero' => 'zeros ', // zeroes126); 127128 // if only one 129if ($ iAmount = 1) 130 return $ sPluralName; 131132 // if more than one, and it is a special plural form 133if (isset ($ arPluralName [$ sPluralName]) 134 return $ arPluralName [$ sPluralName]; 135136 // more than one, and is a standard plural form 137 return $ sPluralName.'s '; 138} 139} 140141 echo 'sybil ate three '. _ plurals_format ('biscuit', 3 ). ', one after the other. ', PHP_EOL; 142 echo 'The two '. _ plurals_format ('Woman ', 2 ). 'will meet tomorrow in the final. ';

The above describes the correct use of the plural in PHP, including the content, and hope to be helpful to friends who are interested in the PHP Tutorial.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.