String Formatting Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
skm376
Forum Newbie
Posts: 4
Joined: Thu Apr 13, 2006 11:57 am

String Formatting Question

Post by skm376 »

I am storing a bunch of names in a MySQL table and I am outputting them in the body of an email I am sending using mail(). I was wondering if there is any way (function?)to buffer the ends of the shorter strings so that they are the same length as the longer strings. This would make my output much neater and better looking. Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

str_pad()
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.
Post Reply