Jump to content

add a back space in php


mona

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...