jestem pro
That is the question
- Joined
- Apr 20, 2013
- Messages
- 650
- Solutions
- 14
- Reaction score
- 88
Hello, I want to display my php code by localhost, but when I do that it shows me the code, not the result.
I'm using Xampp or Wampserver.
Could someone explain me on one of them.
For example:
I'm using Xampp or Wampserver.
Could someone explain me on one of them.
For example:
PHP:
<?php
class display
{
function displayReverse ($a=array())
{
$dl=count($a);
for ($i=$dl-1;$i>=0;$i--){echo $a[$i].' ';}
}
}
$xtr=new display();
$tab=array(12,15,1,6,22,6,34,9,4,1);
$xtr->displayReverse($tab);
?>