Jump to content

php help pls!


Mei_mei

Recommended Posts

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

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.