Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
<?php
$prices = [12000, 9000, 15000, 11000];
// مرتبسازی صعودی
sort($prices);
echo "صعودی:\n";
print_r($prices);
// مرتبسازی نزولی
rsort($prices);
echo "نزولی:\n";
print_r($prices);
?>