onei0120 Posted September 30, 2009 Share Posted September 30, 2009 Hey, had a question for everyone: <?php $name = "Bob"; echo "My name is $name<br/>"; echo "My name is " . $name . "<br/>"; echo 'My name is $name<br/>'; echo 'My name is ' . $name . '<br/>'; ?> what is the php output of this Quote Link to comment https://forums.phpfreaks.com/topic/176117-output-question/ Share on other sites More sharing options...
jon23d Posted September 30, 2009 Share Posted September 30, 2009 Mine said: Hi Bob Quote Link to comment https://forums.phpfreaks.com/topic/176117-output-question/#findComment-928031 Share on other sites More sharing options...
Alex Posted September 30, 2009 Share Posted September 30, 2009 1. Why don't you try it yourself? 2. This isn't a request board, it's a help forum. If you have a question about exactly why it outputs what it outputs, that's a reasonable question. Quote Link to comment https://forums.phpfreaks.com/topic/176117-output-question/#findComment-928033 Share on other sites More sharing options...
onei0120 Posted September 30, 2009 Author Share Posted September 30, 2009 Im just wondering what it is because i have tried to set up a local server and test it, but im not to sure how to do that.. Quote Link to comment https://forums.phpfreaks.com/topic/176117-output-question/#findComment-928038 Share on other sites More sharing options...
mvfreelance Posted October 1, 2009 Share Posted October 1, 2009 this forum is going "kindergarten" level , big time yo kiddo, your output: My name is Bob<br/> My name is Bob<br/> My name is $name<br/> My name is Bob<br/> Quote Link to comment https://forums.phpfreaks.com/topic/176117-output-question/#findComment-928091 Share on other sites More sharing options...
greatstar00 Posted October 1, 2009 Share Posted October 1, 2009 Im just wondering what it is because i have tried to set up a local server and test it, but im not to sure how to do that.. if you want to test things out use the server in my signature, it is free to everyone Quote Link to comment https://forums.phpfreaks.com/topic/176117-output-question/#findComment-928158 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.