Ray's Coding
Welcome to Ray's free coding forum! Here we help people learn to code, and share knowledge of coding.

Please feel free to sign up and begin your learning,teaching or sharing adventure!
Ray's Coding
Welcome to Ray's free coding forum! Here we help people learn to code, and share knowledge of coding.

Please feel free to sign up and begin your learning,teaching or sharing adventure!
Ray's Coding
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Ray's Coding

Ray's coding forum for teaching, sharing, and learning.
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  

 

 [TuT] Echo [TuT]

Go down 
3 posters
AuthorMessage
Ray
God Ray
God Ray
Ray


Posts : 36
Code Tokens : 40323
Join date : 2013-05-02
Age : 25
Location : North America

[TuT] Echo [TuT] Empty
PostSubject: [TuT] Echo [TuT]   [TuT] Echo [TuT] EmptyWed May 08, 2013 3:38 am

PhP Echo



Hey guys, today I'm going to show you how to make a string in PHP using the "echo" command. Lets get started.

First off we need XAMMP or a webhost to try this out on, I recommend using a webhost like 000webhost, ((Free host here)) . Register or Login to view. if you don't already have XAMMP installed. I might later publish a tutorial on how to install XAMMP.

Ok, now we need a text editor I recommend Dw (Dream Weaver) or Notepad++. But yes, a simple notepad will work also!

Now, that we have all our acquirements nessecary to perform this, let's get to the real coding.

First off you're going to need to start and end your PHP using this:

PHP Code:
Code:

<?php

?>

You will place your PHP code inbetween that.

Now, we will make our string using the echo. Like so:

PHP Code:
Code:

<?PHP

echo 'This is a string.';

?>
Great, so far our code should look like this:
Code:

PHP Code:
<?php

echo 'This is a string.';

?>

Now, if you would save that as "String.php" and veiw it in your webhost or your XAMMP local host. It would show up as "This is a string." in the top left hand corner of the browser.


Last edited by Ray on Wed May 08, 2013 5:56 pm; edited 1 time in total
Back to top Go down
https://rayscoding.forumotion.com
iBloom




Posts : 2
Code Tokens : 40174
Join date : 2013-05-08

[TuT] Echo [TuT] Empty
PostSubject: Re: [TuT] Echo [TuT]   [TuT] Echo [TuT] EmptyWed May 08, 2013 5:54 am

WOW This IS Useful THANKS! :DDDDDDDD
Back to top Go down
Tom.




Posts : 5
Code Tokens : 40180
Join date : 2013-05-08

[TuT] Echo [TuT] Empty
PostSubject: Re: [TuT] Echo [TuT]   [TuT] Echo [TuT] EmptyWed May 08, 2013 11:17 am

Ray, Please send a link to download the webhost. Smile Thanks
Back to top Go down
Ray
God Ray
God Ray
Ray


Posts : 36
Code Tokens : 40323
Join date : 2013-05-02
Age : 25
Location : North America

[TuT] Echo [TuT] Empty
PostSubject: Re: [TuT] Echo [TuT]   [TuT] Echo [TuT] EmptyWed May 08, 2013 5:57 pm

Tom. wrote:
Ray, Please send a link to download the webhost. Smile Thanks

The thread has been re-updated with the link to a free hosting site.
Back to top Go down
https://rayscoding.forumotion.com
Sponsored content





[TuT] Echo [TuT] Empty
PostSubject: Re: [TuT] Echo [TuT]   [TuT] Echo [TuT] Empty

Back to top Go down
 
[TuT] Echo [TuT]
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Ray's Coding :: Coding :: PHP-
Jump to: