mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-08-15 23:31:10 +00:00
Глава 11: завершение черновика главы
This commit is contained in:
14
arrays/sort.php
Normal file
14
arrays/sort.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$numbers = ['2', '1', '4', '3','5'];
|
||||
|
||||
echo 'до сортировки: <br />';
|
||||
echo '<pre>';
|
||||
print_r($numbers);
|
||||
echo '</pre>';
|
||||
|
||||
sort($numbers);
|
||||
|
||||
echo 'после сортировки: <br />';
|
||||
echo '<pre>';
|
||||
print_r($numbers);
|
||||
echo '</pre>';
|
Reference in New Issue
Block a user