Posted by roN on 09/29/05 06:52
wouldn't a sort-algorithm like this work:
function MySort($Array, $StringA)
{
$i=Array;
for ($i=0; $i>=Array.size(); $i++)
{
while (strpos($Array[$i],$StringA))//if Array $i contains StringA,
{
move Element $i to $i+1; and
move $i+1 to $i;
}
}
}
but how to move the elements?
--
chEErs roN
I'm root, I'm allowed to do this! ;)
keep on rockin'
[Back to original message]
|