Jump to content

Traverse and insert page breaks?


FridayRain

Recommended Posts

Is it possible to use with the nl2br function? Something like:

 

echo ltrim(nl2br(article));

 

That syntax doesn't remove the extra space, but if I take out NL2BR, it does. Can I keep it inline like the above, or do I have to put the NL2BR'd string into a variable and then LTRIM it?

I also have to prevent people from being able to type in a page number that doesn't exist for a piece, so when they do, they get a message saying the page doesn't exist or something, instead of seeing their current page and navigation links.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.