mona Posted October 15, 2005 Share Posted October 15, 2005 i want a function that adds a backspace in php coz I have for loop in php and I want to leave a space at the begining if i<10 but i tried the following it doesn't workif ($i<10) echo " ";echo "<font color='red'>". $i ."</font> Link to comment Share on other sites More sharing options...
Nick Posted October 17, 2005 Share Posted October 17, 2005 Try posting more of your script and I should be able to help you.Right now the only problem I see is that this: echo "<font color='red'>". $i ."</font> Should be this: echo "<font color='red'>". $i ."</font>"; Please post more than three lines though so I can see what you're trying to do.Also, you may want to use instead of a space to make sure that the web browser shows the space. Link to comment Share on other sites More sharing options...
actionsketch Posted October 18, 2005 Share Posted October 18, 2005 Yeah, you want to use because broswers ignore spaces that aren't surrounded by text. As for adding a backspace though... that just doesn't make any sense... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now