vick22 Posted July 27, 2010 Share Posted July 27, 2010 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 More sharing options...
xcandiottix Posted July 27, 2010 Share Posted July 27, 2010 $h = "Hey "; echo $h.$data; Link to comment https://forums.phpfreaks.com/topic/209041-how-to-add-a-particular-word-at-start/#findComment-1091826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.