php代码
<?php
/*
* 冒泡排序
*/
$arr = array(12,23,33,46,67,90,234,156,99,80);
echo '原数组:
';
print_r($arr);
echo '
';
$n = count($arr);
echo "元素个数:
$n";
echo '
';
for($i=0;$i<$n;$i++) {
for($j=0;$j
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn