Jump to content

How to add a particular word at start?


vick22

Recommended Posts

I am stuck at one place where I want to add a particular word or variable at start-

 

 

$data2 = substr($output,-10);
$que = array(' ', '_');
$cod = array('','');
$h = hey;
$data = str_replace ($que,$cod,$data2);

 

I want to add the word "hey" or say any variable at start of $data value.

 

Any idea how can I do that?

Link to comment
https://forums.phpfreaks.com/topic/209041-how-to-add-a-particular-word-at-start/
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.