like javascript (javascript:and the function) in php how can i use it this is my code:
[code=php]<?php
function sorting(){sort( $data);}
function rsorting(){rsor t($data);}
$data=array(2,5 6,54,2,32,14,15 4,2184,1214,10, 1,50);
$num=0;
while($num<coun t($data))
{
echo $data[$num]."</br>";
$num++;
}
?>
</head>
<body>
<a href="?rsorting ()">Max</a> | <a href="?rsorting ()">Min</a>
</body>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
[code=php]<?php
function sorting(){sort( $data);}
function rsorting(){rsor t($data);}
$data=array(2,5 6,54,2,32,14,15 4,2184,1214,10, 1,50);
$num=0;
while($num<coun t($data))
{
echo $data[$num]."</br>";
$num++;
}
?>
</head>
<body>
<a href="?rsorting ()">Max</a> | <a href="?rsorting ()">Min</a>
</body>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
Comment