Web Rewrite
Technology Blog Where You Find Programming Tips and Tricks
  Menu
Skip to content
  • Home
  • Java
  • Programming Questions
    • Array
    • Linked List
    • Stack
    • Queue
    • String
    • Search Algo
    • Interview Questions
  • Solid Principles
  • Multithreading
  • PHP
  • Database
    • mysql
    • MongoDB
  • Contact Us

Category Archives: Uncategorized

« Older posts

Binary Search in PHP | Explained with Code Examples

By WebRewrite | April 16, 2022 - 11:57 am |April 16, 2022 Uncategorized
Leave a comment

Write a program to implement binary search in PHP.

Given a sorted array, write a PHP code to search an element using binary search algorithm.

For example –

Input : { 1,  3,  5,  6,  7,  8,  9} ,  k = 6

Output: 3 (6 is found at 3rd index)

→

Tagged Binary Search, PHP

Swap Two Numbers in PHP – Explain with Code Examples

By WebRewrite | March 4, 2017 - 7:42 am |March 4, 2017 PHP, Uncategorized
Leave a comment

Write a PHP script to swap two numbers. In this tutorial, we are going to write a code to swap two numbers in PHP.

There are multiple approaches by which you can swap two numbers.

i) We can swap two numbers using third or temp variable.

ii) We can swap two numbers without using third variable.

→

Tagged PHP, swap numbers

Foreign Key in Mysql : How to Create a Foreign Key in Mysql

By WebRewrite | May 2, 2016 - 11:39 am |May 2, 2016 Uncategorized
Leave a comment

How to create a Foreign key in MySql. What’s the use of Foreign key constraint in a MySql. In this tutorial, You’ll learn about Foreign key constraint and it’s advantages. →

12
  • Support Me on PayPal

    Programming Video Tutorials


  • Related Posts (YARPP)

    1. How to Remove WWW From URL through htaccess
    2. How to Enable .htaccess File in Apache2
    3. How to Prevent Image Hotlinking through .htaccess
    4. htaccess Tutorial
  • Topics

    • Multithreading

    • Linked List

    • Binary Tree

    • Hash Map

    • Java

    • Queue

    • Stack

    • Binary Search

    • Programming

    • Sliding Window

    • Composer

    • Memcache

    • Javascript

    • Solid Principles

  • Copyright 2020 – 2021 – webrewrite.com – All Rights Reserved.

  • Home
  • Java
  • Programming Questions
  • Solid Principles
  • Multithreading
  • PHP
  • Database
  • Contact Us
Web Rewrite | Powered by Mantra & WordPress.