TOP TECH
  Learn How to.....
Welcome IT Related Articles Member Area  |  Sign In  |  Sign Up
.: Home :.
General
HTML
CSS
PHP
PHP-MySQL
FrontPage
Photoshop
CorelDRAW
PageMaker
MS Office
VisualBasic
All
.

.: Home :.

Home >> PHP - MySQL
Getting Start PHP with example codes - 1.1 [Page 2]
Article by: Shelton Manage
Thursday, 21st May, 2009


Print & Echo

PHP has a number of build-in functions written spesifically to accomplish this, the most common being echo() and print().

echo 'Hello, world';
print "It's nice to see you.";

Ex: echo_print.phps | echo_print.php

You can also u use these functions to send HTML code to the Web browser, like so....
echo ' Hello, world!';
ex: html_php.phps | html_php.php

PHP is case-insentive when it comes to function names, so ECHO(), echo(), eCho(), eCHo(), and so forth will all worlk. With echo() but not print(), you can send multiple, seperate chunk of data to the Web browser using commas: echo 'Hello, ', 'world!'; Echo() and print() can both be used to print text over multiple lines, as you'll encounter.



Page: First - 1 2 3 4 - Last

 



Comments


© 2009 Top Sri Lanka Top Tech.
Articles Manager β - Script by: DynamicCodes.com