Mei_mei Posted May 19, 2007 Share Posted May 19, 2007 Hi there! i really need some help so i'll be verry gratefull if someone could help me ... i'm making a PHP script for a school project ... i need to add suffix and prefix to a chain of letters but i can find the way to do it ... pls if u have any ideas ... let me know ... 10x ... Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted May 20, 2007 Share Posted May 20, 2007 I'm not 100% sure what you mean, but if you mean, you need a way to add something to the beginning, and at the en d of a word, or sentence, you can just use variables. Example: <?php $prefix = "Beginning|"; $suffix = "|Ending"; $sentence = "Long story Short. The End"; $result = "$prefix $sentence . $suffix"; echo($result); ?> That would display Beginning| Long story Short. The End . |Ending Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.