This repository contains a collection of simple PHP programs aimed at practicing and improving PHP programming skills. The examples range from basic to intermediate concepts, covering various aspects of PHP.
This repository is designed for anyone looking to improve their PHP skills by working through practical examples. Each program is self-contained and demonstrates key concepts in PHP, such as variables, loops, functions, arrays, and more.
To run the programs in this repository, you'll need:
- PHP version 7.0 or higher
- A local server environment like XAMPP or MAMP for testing PHP scripts locally.
- Clone the repository to your local machine:
git clone https://github.com/MuhammadZulhusni/php-programs.git
- Navigate to the repository directory:
cd php-programs
- Run the PHP script using PHP CLI:
- For each PHP program, run it in the terminal.
- Replace your-program-file.php with the actual PHP file name (e.g., atm.php).
php your-program-file.php
Contributions are welcome! If you have new programs or improvements to the existing ones, feel free to fork the repository and submit a pull request.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -m 'Add a new feature
) - Push to the branch (
git push origin feature-branch
) - Open a pull request