WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

dineshsinghdhami/PHP-Basics

Repository files navigation

PHP Basics for Beginners 🐘

This repository is designed for absolute beginners who want to learn the fundamentals of PHP (Hypertext Preprocessor).
It covers basic concepts with simple examples to help you understand how PHP works.


πŸ“Œ What is PHP?

PHP is a server-side scripting language mainly used for web development.
It can be embedded into HTML and is widely used to build dynamic websites and web applications.


🧰 Requirements

Before you start, make sure you have:

  • PHP installed (version 7.x or later recommended)
  • A local server such as:
    • XAMPP
    • WAMP
    • MAMP
    • Laragon
  • A code editor:
    • VS Code
    • Sublime Text
    • Notepad++

πŸš€ How to Run PHP Files

  1. Install XAMPP (or any PHP server).
  2. Place the project folder inside:
    htdocs/
    
    
  3. Start Apache from the XAMPP control panel.
  4. Open your browser and visit:
    http://localhost/project-folder-name/
    

πŸ“˜ Topics Covered

  • PHP Syntax
  • Variables & Data Types
  • Operators
  • Conditional Statements
  • Loops
  • Arrays
  • Functions
  • Basic Output (echo, print)

πŸ§ͺ Example Code

<?php
echo "Hello, World!";
?>/

🀝 Contributing

  • Contributions are welcome!
  • Feel free to fork the repository and submit a pull request.

About

PHP Basics

Topics

Resources

Stars

Watchers

Forks

Languages