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 Quote Link to comment https://forums.phpfreaks.com/topic/252264-rtrim-help/ Share on other sites More sharing options...
Spring 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. Quote Link to comment https://forums.phpfreaks.com/topic/252264-rtrim-help/#findComment-1293290 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.