Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
<?php
$array = array(4, 6, -2, 1, 3, 90, 0, 9, 8, 7, 5);
$newarray = array();
$x = 0;
$arraysize = sizeof($array);
echo "\nOld "; print_r($array); echo "\n";
// get an array to loop over all the numbers in the array, accounting for changes in length
foreach ($array as $not_needed) {
// set our original lowest to infinity so that everything is smaller than it
$lowest = INF;
// loop through all the array members (again) to find the lowest
foreach ($array as $arraymember){
// if the current member is lower than the lowest one so far, make it the lowest
if ($lowest > $arraymember){
$lowest = $arraymember;
} else {};
}
$key = array_search($lowest, $array);
unset($array[$key]);
$newarray[] += $lowest;
}
// echo the whole array
echo "\nNew "; print_r($newarray); echo "\n";
?>
<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
echo "<h1>Hello, PHP!</h1>\n";
?>
</body>
</html>
</body>
?php
</bash
</php
</title>
</?php> php scipts </php>
print"hello world"
"hello world"*100
print.numpy as np
select numbers from 1 to 100
if(1<100)</100>
or else(if 1==100)
</body> <title> </>
print the data and to execute from the list given below
sql={"name","age","sex"}
sql={"subham","21","male"}
"select* from users"