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
|
|