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 ... Link to comment https://forums.phpfreaks.com/topic/52137-php-help-pls/ 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 Link to comment https://forums.phpfreaks.com/topic/52137-php-help-pls/#findComment-257415 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.