php

PHP is one of the most popular server-side scripting and HTML embedded languages which is designed primarily for web development but also used as a general-purpose programming language.

How to find prefix and suffix of the word in javascript
php

How to find prefix and suffix of the word in javascript

First of all, you have to know that how to get the currently selected text on the page by using the JavaScript. So, Javascript provided a method for retrieving the current selection of the page by using window.getSelection().

How to find minimum value of an array
php

How to find minimum value of an array

It's very simple to find the minimum value of an array using foreach loop. Create an array with some numeric value. Now create a temporary variable $temp in which stored array’s first index’s value i.e 45.

Find the Largest Number in an Array using php
php

Find the Largest Number in an Array using php

Example  for getting largest number in an array

Call by reference in php with example
php

Call by reference in php with example

Let's understand the concept of call by reference by the help of examples. variable $str is passed to the adder function where it is concatenated with 'Call By Reference' string.

Switch statement in php
php

Switch statement in php

Switch statement is used to execute one statement from multiple conditions in PHP. It works like PHP if-else-if statement. But it's better that if-else-if statement.

How to secure input in php
php

How to secure input in php

Sanitizing data means Remove any illegal character from the data.  In php you need to impliment this one for secure input for MySQL.