This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$mysort = new mysort; | |
$mysort->ceshi(); | |
class mysort{ | |
public function ceshi() | |
{ | |
$arr1 = array( | |
array('id' => 1, 'name' => 'yhp'), | |
array('id' => 2, 'name' => 'yhp2'), | |
array('id' => 3, 'name' => 'yhp3'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.sum=function(){ | |
var num=0; | |
for(var i=0;i<this.length;i++){ | |
num+=this[i]; | |
} | |
return num; | |
} | |
function vhall_sort(arr){ |