<?phpecho "Enter an odd number";$n=trim(fgets(STDIN));$n=(int)$n;for($i=1;$i<=$n-1;$i++){ echo "*";}
3
Enter an odd number**
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!