{"id":818,"date":"2021-04-22T06:05:46","date_gmt":"2021-04-22T06:05:46","guid":{"rendered":"https:\/\/bcisnotes.com\/fourthsemester\/?p=818"},"modified":"2021-04-22T06:05:46","modified_gmt":"2021-04-22T06:05:46","slug":"php-functions-in-sorting-arrays-server-side-scripting-bcis-notes","status":"publish","type":"post","link":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/","title":{"rendered":"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes"},"content":{"rendered":"<h1 style=\"text-align: center;\">PHP Functions in Sorting Arrays<\/h1>\n<div class=\"page\" title=\"Page 35\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>PHP comes with a number of built-in functions designed specifically for sorting array elements in different ways like alphabetically or numerically in ascending or descending order. Here we&#8217;ll explore some of these functions most commonly used for sorting arrays.<\/p>\n<ul>\n<li>sort() and rsort() \u2014 For sorting indexed arrays<\/li>\n<li>asort() and arsort() \u2014 For sorting associative arrays by value<\/li>\n<li>ksort() and krsort() \u2014 For sorting associative arrays by key<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"page\" title=\"Page 35\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<h2>Sorting Indexed Arrays in Ascending Order<\/h2>\n<div class=\"page\" title=\"Page 36\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>The sort() function is used for sorting the elements of the indexed array in ascending order (alphabetically for letters and numerically for numbers).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8858 size-full\" title=\"Sorting Indexed Arrays in Ascending Order\" src=\"https:\/\/www.onlinenotesnepal.com\/wp-content\/uploads\/2021\/04\/Screen-Shot-2021-04-11-at-2.09.33-PM.png\" alt=\"Sorting Indexed Arrays in Ascending Order\" width=\"693\" height=\"143\" \/><\/p>\n<div class=\"page\" title=\"Page 36\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>This print_r() statement gives the following output:<\/p>\n<p>Array ( [0] =&gt; Blue [1] =&gt; Green [2] =&gt; Red [3] =&gt; Yellow )<\/p>\n<p>Similarly you can sort the numeric elements of the array in ascending order.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8860\" src=\"https:\/\/www.onlinenotesnepal.com\/wp-content\/uploads\/2021\/04\/Screen-Shot-2021-04-11-at-2.10.35-PM.png\" alt=\"Array in ascending order\" width=\"667\" height=\"144\" \/><\/p>\n<div class=\"page\" title=\"Page 36\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>This print_r() statement gives the following output:<\/p>\n<p>Array ( [0] =&gt; 1 [1] =&gt; 2 [2] =&gt; 2.5 [3] =&gt; 4 [4] =&gt; 7 [5] =&gt; 10 )<\/p>\n<div class=\"page\" title=\"Page 37\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<h2>Sorting Indexed Arrays in Descending Order<\/h2>\n<p>The rsort() function is used for sorting the elements of the indexed array in descending order (alphabetically for letters and numerically for numbers).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8861\" src=\"https:\/\/www.onlinenotesnepal.com\/wp-content\/uploads\/2021\/04\/Screen-Shot-2021-04-11-at-2.13.00-PM.png\" alt=\"Indexed Arrays in Descending\" width=\"714\" height=\"145\" \/><\/p>\n<div class=\"page\" title=\"Page 37\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>This print_r() statement gives the following output:<\/p>\n<p>Array ( [0] =&gt; Yellow [1] =&gt; Red [2] =&gt; Green [3] =&gt; Blue )<\/p>\n<div class=\"page\" title=\"Page 37\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<h2>Sorting Associative Arrays in Ascending Order By Value<\/h2>\n<p>The asort() function sorts the elements of an associative array in ascending order according to the value. It works just like sort(), but it preserves the association between keys and their values while sorting.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8863\" src=\"https:\/\/www.onlinenotesnepal.com\/wp-content\/uploads\/2021\/04\/Screen-Shot-2021-04-11-at-2.15.37-PM.png\" alt=\"Associative Arrays in Ascending Order By Value\" width=\"708\" height=\"134\" \/><\/p>\n<div class=\"page\" title=\"Page 38\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>This print_r() statement gives the following output:<br \/>\nArray ( [Harry] =&gt; 14 [Peter] =&gt; 20 [Clark] =&gt; 35 [John] =&gt; 45 )<\/p>\n<div class=\"page\" title=\"Page 38\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<h2>Sorting Associative Arrays in Descending Order By Value<\/h2>\n<p>The arsort() function sorts the elements of an associative array in descending order according to the value. It works just like rsort(), but it preserves the association between keys and its values while sorting.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8867\" src=\"https:\/\/www.onlinenotesnepal.com\/wp-content\/uploads\/2021\/04\/Screen-Shot-2021-04-11-at-2.16.43-PM.png\" alt=\"Associative Arrays in Descending Order By Value\" width=\"681\" height=\"125\" \/><\/p>\n<div class=\"page\" title=\"Page 38\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>This print_r() statement gives the following output:<br \/>\nArray ( [John] =&gt; 45 [Clark] =&gt; 35 [Peter] =&gt; 20 [Harry] =&gt; 14 )<\/p>\n<div class=\"page\" title=\"Page 38\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<h2>Sorting Associative Arrays in Ascending Order By Key<\/h2>\n<p>The ksort() function sorts the elements of an associative array in ascending order by their keys. It preserves the association between keys and its values while sorting, same as asort() function.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8870\" src=\"https:\/\/www.onlinenotesnepal.com\/wp-content\/uploads\/2021\/04\/Screen-Shot-2021-04-11-at-2.18.02-PM.png\" alt=\"Associative Arrays in Ascending Order By Key\" width=\"704\" height=\"137\" \/><\/p>\n<div class=\"page\" title=\"Page 39\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>This print_r() statement gives the following output:<br \/>\nArray ( [Clark] =&gt; 35 [Harry] =&gt; 14 [John] =&gt; 45 [Peter] =&gt; 20 )<\/p>\n<div class=\"page\" title=\"Page 39\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<h2>Sorting Associative Arrays in Descending Order By Key<\/h2>\n<p>The krsort() function sorts the elements of an associative array in descending order by their keys. It preserves the association between keys and its values while sorting, same as arsort() function.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8871\" src=\"https:\/\/www.onlinenotesnepal.com\/wp-content\/uploads\/2021\/04\/Screen-Shot-2021-04-11-at-2.19.24-PM.png\" alt=\"Associative Arrays in Descending Order By Key\" width=\"700\" height=\"146\" \/><\/p>\n<div class=\"page\" title=\"Page 39\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>This print_r() statement gives the following output:<\/p>\n<p>Array ( [Peter] =&gt; 20 [John] =&gt; 45 [Harry] =&gt; 14 [Clark] =&gt; 35 )<\/p>\n<p>If you liked our content PHP Functions\u00a0in Sorting Arrays, then you may also like\u00a0<a href=\"https:\/\/bcisnotes.com\/fourthsemester\/arrays-in-php-server-side-scripting-bcis-notes\/\">Arrays in PHP<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>PHP Functions in Sorting Arrays PHP comes with a number of built-in functions designed specifically for sorting array elements in different ways like alphabetically or <a class=\"mh-excerpt-more\" href=\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/\" title=\"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":3,"featured_media":819,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[255,264,228],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes<\/title>\n<meta name=\"description\" content=\"PHP comes with built-in functions designed specifically for sorting array elements in different ways like alphabetically or numerically.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes\" \/>\n<meta property=\"og:description\" content=\"PHP comes with built-in functions designed specifically for sorting array elements in different ways like alphabetically or numerically.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/\" \/>\n<meta property=\"og:site_name\" content=\"BCIS Fourth Semester\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-22T06:05:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png\" \/>\n\t<meta property=\"og:image:width\" content=\"340\" \/>\n\t<meta property=\"og:image:height\" content=\"230\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Her Highness\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Her Highness\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/\"},\"author\":{\"name\":\"Her Highness\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/person\/fcc10e27b06f3f95367e914911b47eb3\"},\"headline\":\"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes\",\"datePublished\":\"2021-04-22T06:05:46+00:00\",\"dateModified\":\"2021-04-22T06:05:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/\"},\"wordCount\":449,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#organization\"},\"image\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png\",\"keywords\":[\"PHP\",\"PHP Functions in Sorting Arrays\",\"Server Side Scripting\"],\"articleSection\":[\"IT\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/\",\"url\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/\",\"name\":\"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes\",\"isPartOf\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png\",\"datePublished\":\"2021-04-22T06:05:46+00:00\",\"dateModified\":\"2021-04-22T06:05:46+00:00\",\"description\":\"PHP comes with built-in functions designed specifically for sorting array elements in different ways like alphabetically or numerically.\",\"breadcrumb\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#primaryimage\",\"url\":\"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png\",\"contentUrl\":\"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png\",\"width\":340,\"height\":230,\"caption\":\"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/bcisnotes.com\/fourthsemester\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#website\",\"url\":\"https:\/\/bcisnotes.com\/fourthsemester\/\",\"name\":\"BCIS Fourth Semester\",\"description\":\"Notes of Information and Technology\",\"publisher\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/bcisnotes.com\/fourthsemester\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#organization\",\"name\":\"BCIS Fourth Semester\",\"url\":\"https:\/\/bcisnotes.com\/fourthsemester\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/02\/cropped-4-1.jpg\",\"contentUrl\":\"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/02\/cropped-4-1.jpg\",\"width\":300,\"height\":100,\"caption\":\"BCIS Fourth Semester\"},\"image\":{\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/person\/fcc10e27b06f3f95367e914911b47eb3\",\"name\":\"Her Highness\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9f5c6e84ebb073447dba2985b41b0fdc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9f5c6e84ebb073447dba2985b41b0fdc?s=96&d=mm&r=g\",\"caption\":\"Her Highness\"},\"sameAs\":[\"http:\/\/bcisnotes.com\/fourthsemester\"],\"url\":\"https:\/\/bcisnotes.com\/fourthsemester\/author\/jaya\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes","description":"PHP comes with built-in functions designed specifically for sorting array elements in different ways like alphabetically or numerically.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/","og_locale":"en_US","og_type":"article","og_title":"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes","og_description":"PHP comes with built-in functions designed specifically for sorting array elements in different ways like alphabetically or numerically.","og_url":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/","og_site_name":"BCIS Fourth Semester","article_published_time":"2021-04-22T06:05:46+00:00","og_image":[{"width":340,"height":230,"url":"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png","type":"image\/png"}],"author":"Her Highness","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Her Highness","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#article","isPartOf":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/"},"author":{"name":"Her Highness","@id":"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/person\/fcc10e27b06f3f95367e914911b47eb3"},"headline":"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes","datePublished":"2021-04-22T06:05:46+00:00","dateModified":"2021-04-22T06:05:46+00:00","mainEntityOfPage":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/"},"wordCount":449,"commentCount":0,"publisher":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/#organization"},"image":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#primaryimage"},"thumbnailUrl":"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png","keywords":["PHP","PHP Functions in Sorting Arrays","Server Side Scripting"],"articleSection":["IT"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/","url":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/","name":"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes","isPartOf":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#primaryimage"},"image":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#primaryimage"},"thumbnailUrl":"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png","datePublished":"2021-04-22T06:05:46+00:00","dateModified":"2021-04-22T06:05:46+00:00","description":"PHP comes with built-in functions designed specifically for sorting array elements in different ways like alphabetically or numerically.","breadcrumb":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#primaryimage","url":"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png","contentUrl":"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/04\/bcis-34.png","width":340,"height":230,"caption":"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes"},{"@type":"BreadcrumbList","@id":"https:\/\/bcisnotes.com\/fourthsemester\/php-functions-in-sorting-arrays-server-side-scripting-bcis-notes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bcisnotes.com\/fourthsemester\/"},{"@type":"ListItem","position":2,"name":"PHP Functions in Sorting Arrays || Server Side Scripting || BCIS Notes"}]},{"@type":"WebSite","@id":"https:\/\/bcisnotes.com\/fourthsemester\/#website","url":"https:\/\/bcisnotes.com\/fourthsemester\/","name":"BCIS Fourth Semester","description":"Notes of Information and Technology","publisher":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bcisnotes.com\/fourthsemester\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/bcisnotes.com\/fourthsemester\/#organization","name":"BCIS Fourth Semester","url":"https:\/\/bcisnotes.com\/fourthsemester\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/logo\/image\/","url":"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/02\/cropped-4-1.jpg","contentUrl":"https:\/\/bcisnotes.com\/fourthsemester\/wp-content\/uploads\/2021\/02\/cropped-4-1.jpg","width":300,"height":100,"caption":"BCIS Fourth Semester"},"image":{"@id":"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/person\/fcc10e27b06f3f95367e914911b47eb3","name":"Her Highness","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bcisnotes.com\/fourthsemester\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9f5c6e84ebb073447dba2985b41b0fdc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9f5c6e84ebb073447dba2985b41b0fdc?s=96&d=mm&r=g","caption":"Her Highness"},"sameAs":["http:\/\/bcisnotes.com\/fourthsemester"],"url":"https:\/\/bcisnotes.com\/fourthsemester\/author\/jaya\/"}]}},"_links":{"self":[{"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/posts\/818"}],"collection":[{"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/comments?post=818"}],"version-history":[{"count":1,"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/posts\/818\/revisions"}],"predecessor-version":[{"id":820,"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/posts\/818\/revisions\/820"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/media\/819"}],"wp:attachment":[{"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/media?parent=818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/categories?post=818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bcisnotes.com\/fourthsemester\/wp-json\/wp\/v2\/tags?post=818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}