mpsn Posted December 2, 2011 Share Posted December 2, 2011 <?php $pathexpress = "email/message/to/toFirstName"; $childLabelPath = "email/message/to/toFirstName/#text"; $curChildLabelPath = rtrim($childLabelPath, "/#text"); echo $curChildLabelPath; ?> But why is ouput in browser screen: email/message/to/toFirstNam ANy help plez Link to comment https://forums.phpfreaks.com/topic/252264-rtrim-help/ Share on other sites More sharing options...
poopinthescoop Posted December 2, 2011 Share Posted December 2, 2011 <?php $pathexpress = "email/message/to/toFirstName"; $childLabelPath = "email/message/to/toFirstName /#text"; //space $curChildLabelPath = rtrim($childLabelPath, "/#text"); echo $curChildLabelPath; ?> I'm not sure if this helps you at all, but this worked for me. Link to comment https://forums.phpfreaks.com/topic/252264-rtrim-help/#findComment-1293290 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.