Skip to content

patilsp/php-interview-prep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Interview Questions & Answers 🚀

This repository contains PHP coding questions and their solutions, ranging from basic to advanced levels, to help you prepare for technical interviews.

📌 Questions Covered

Basic PHP Questions

  1. Swap Two Numbers Without Using a Third Variable
  2. Check if a Number is Prime
  3. Reverse a String Without Using Built-in Functions

Intermediate PHP Questions

  1. Find the Factorial of a Number (Using Recursion)
  2. Find the Second Largest Number in an Array

Advanced PHP Questions

  1. Reverse a Linked List in PHP (Using Classes & OOP)
  2. Implement a Login System Using PHP & MySQL
  3. Implement an API in PHP (RESTful API Example)

📂 Structure

  • Each question will have its own file inside the solutions folder.
  • Example:
    /solutions/
      - 01_swap_numbers.php
      - 02_prime_check.php
      - 03_reverse_string.php
    

🚀 How to Use

  1. Clone this repository:
    git clone https://github.com/patilsp/php-interview-prep.git
  2. Navigate to the project folder:
    cd php-interview-prep
  3. Run PHP scripts:
    php solutions/01_swap_numbers.php

📝 Contributing

Feel free to add more PHP interview questions and improve existing solutions. Pull requests are welcome!

📌 Author

  • Your Name (Santosh Patil)

Happy Coding! 🚀

About

Started with basic programing in PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published