I think this is probably a fairly original question. I'm new to php, and as practice to get comfortable with the language, Im working on a terminal like "hacker vs security" game. It's a pretty easy layout, and I'm looking forward to the possibilities, but I'd like to echo a dash (-) that flashes in front the "command line." Is this even possible: here is my current attempt:
<?php
$dash = "-";
$space = " ";
$int = 1;
if ($odd == $int % 2)
{
$od_ev = 2;
$int++;
}
else
{
$od_ev =3;
$int++;
}
while ($od_ev == 2)
{
echo $dash;
}
?>
Edit: a while, else capability in php would work nicely here, allowing an:
else
{
Echo $space
}