Skip to content

tejHacks/binary-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Binary Search Web App (PHP)

A simple implementation of the Binary Search algorithm in PHP, designed to help you visualize and understand how binary search works in action.

πŸš€ Features

  • Input an array of sorted numbers
  • Enter a target value to search
  • View each step as the algorithm narrows down the search
  • Built with pure PHP and vanilla HTML/CSS

πŸ“ Tech Stack

  • PHP
  • HTML/CSS

🧠 What You'll Learn

  • Binary Search logic (Divide & Conquer)
  • PHP form handling
  • Input validation
  • Conditional rendering in HTML with PHP

πŸ’‘ Usage

  1. Clone the repo or download the files
  2. Serve via local server (XAMPP, MAMP, or PHP built-in server)
  3. Access the form in your browser
  4. Try searching for numbers in your array

✍ Author

About

A mini binary search demo in PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published