• Free Template
  • Web Dev
    • CSS
    • JavaScript
    • PHP Scripting
    • HTML 5
    • Articles
  • Programming
    • Python
    • C++
    • Java
    • C Programming
    • Data Structure
    • Articles
  • Tips & Tricks
  • Technology
  • What's Hot
  • Subscribe Us

php Examples

  • Introduction
  • Hello World
  • Arithmetic Operations
  • Greatest Number
  • Fibonacci Series
  • Method Overriding
  • Method Overloading
  • Inheritance
  • Constructor Destructor
  • Class Object
  • Nested Function
  • Recursive Function
  • Function
  • Array Search
  • Break Array
  • Array Merge
  • Array Sort
  • Upload Multiple Files
  • Mysql Connection
  • Instance of
  • Interface
  • Object Cloning
  • Login Form
  • Form Validation
  • Upload File
  • HTTP Authentication
  • HTTP Header
  • Cookie
  • Session
  • E-mail Validation
  • Send E-mail
  • E-mail with Attachment
  • Date Time
  • Array Sum
  • Select MySQL DB
  • MySQL DB Query
  • Create Delete Directory
  • Directory Contents
  • Create Delete File
  • Copy File
  • Read File
  • Read CSV file
  • Create XML File
  • Read XML File
  • Imagick

May 17, 2020

Hello World

PHP Scripting 895 views
<!DOCTYPE html>
<html>
	<head>
		<title>Hello World</title>
	</head>
	<body>
		<p>
		<?php
			/* Display text using 'echo' */
			echo "Hello<br />";
			
			/* Display text using 'print' (can be used with or without parentheses) */
			print("World");
		?>
		</p>
	</body>
</html>



/* Output */
Hello
World
                                Copy Code
                            
Tags:
phpHypertext Preprocessorhello worldPHP Script
Author: Geekboots
Share On
Geekboots © 2023 About UsContact UsTermsCookie PolicyPrivacySubmit Article