phorcon3 Posted June 1, 2008 Share Posted June 1, 2008 can you do that in php? i cant find any good functions. like, for example, i have: <?php $first='ha'; $second='ha'; ?> and what i wanna do is, merge em with an underscore, so it would output ha_ha i know you can easily do it this way: echo $first.'_'.$second; but i just thought maybe theres a nicer way to do this..? Link to comment https://forums.phpfreaks.com/topic/108217-solved-merge-words/ Share on other sites More sharing options...
Prismatic Posted June 1, 2008 Share Posted June 1, 2008 If you had a lot of words in an array you could do it differently, though it's not necessarily nicer Link to comment https://forums.phpfreaks.com/topic/108217-solved-merge-words/#findComment-554700 Share on other sites More sharing options...
phorcon3 Posted June 1, 2008 Author Share Posted June 1, 2008 oh, ok.. then ill just leave it as it is, thanks Link to comment https://forums.phpfreaks.com/topic/108217-solved-merge-words/#findComment-554703 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.