spires Posted March 2, 2009 Share Posted March 2, 2009 Hi Guys I can't seem to insert \n Instead my code is echoing out \n rather than creating a line break. echo 'array( Name => "'.$list_explode2['0'].'", Email => "'.$list_explode2['1'].'"),\n'; Any ideas? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/147647-solved-n-help/ Share on other sites More sharing options...
premiso Posted March 2, 2009 Share Posted March 2, 2009 echo 'array( Name => "'.$list_explode2['0'].'", Email => "'.$list_explode2['1'].'"),' . "\n"; You need to use double quotes around characters like that for them to display right, the ' takes them literally. The " actually displays the character. Quote Link to comment https://forums.phpfreaks.com/topic/147647-solved-n-help/#findComment-775095 Share on other sites More sharing options...
spires Posted March 2, 2009 Author Share Posted March 2, 2009 Thats Excellent, Thanks Quote Link to comment https://forums.phpfreaks.com/topic/147647-solved-n-help/#findComment-775098 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.